[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to set up sendmail on a box behind firewall under Fedora Core 4



 
    
## fake hostname raider
[root@raider mail]# hostname	
raider

[root@raider mail]# rpm -qa |grep sendmail
sendmail-8.13.4-2
sendmail-cf-8.13.4-2

[root@raider mail]# diff sendmail.mc sendmail.mc.orig 
22c22
< define(`SMART_HOST',`smtp.unimacq.edu.au')
---
> dnl define(`SMART_HOST',`smtp.your.provider')
156c156
< MASQUERADE_AS(`unimacq.edu.au')dnl
---
> dnl MASQUERADE_AS(`mydomain.com')dnl
160c160
< FEATURE(masquerade_envelope)dnl
---
> dnl FEATURE(masquerade_envelope)dnl
164c164
< FEATURE(masquerade_entire_domain)dnl
---
> dnl FEATURE(masquerade_entire_domain)dnl
166,168c166,168
< MASQUERADE_DOMAIN(localhost)dnl
< MASQUERADE_DOMAIN(localhost.localdomain)dnl
< MASQUERADE_DOMAIN(unimacq.edu.au)dnl
---
> dnl MASQUERADE_DOMAIN(localhost)dnl
> dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
> dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl

[root@raider mail]# make

[root@raider mail]# /etc/rc.d/init.d/sendmail restart

## real hostname igloo.its.unimacq.edu.au
[root@raider mail]# cat ~terrence/.muttrc 
set hostname="igloo.its.unimacq.edu.au"
...


Google