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

sendmail: unable to qualify my own domain name



 
    
Squatter is a faked box behind firewall. While sendmail takes too long to 
start. In log file:

[root@squatter ~]# tail -f /var/log/maillog
...
May  9 23:29:01 squatter sendmail[2704]: starting daemon (8.13.4): SMTP+queueing@01:00:00
May  9 23:29:01 squatter sm-msp-queue[2709]: My unqualified host name (squatter) unknown; sleeping for retry
May  9 23:30:01 squatter sm-msp-queue[2709]: unable to qualify my own domain name (squatter) -- using short name
...

[root@squatter mail]# pwd
/etc/mail

[root@squatter mail]# diff sendmail.mc sendmail.mc.orig 
22c22
< define(`SMART_HOST',`mail.westnet.com.au')
---
> dnl define(`SMART_HOST',`smtp.your.provider')
156c156
< MASQUERADE_AS(`westnet.com.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(westnet.com.au)dnl
---
> dnl MASQUERADE_DOMAIN(localhost)dnl
> dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
> dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl

[root@squatter mail]# make

[root@squatter mail]# cat /etc/hosts
...
127.0.0.1               localhost.localdomain localhost 
127.0.0.1               squatter.local squatter
...

Start sendmail. Problem solved!


-- 
Terrence Miao                       
Independent IT Consultant                              ...   __o         
Intelligent Business Solutions & Services Pty. Ltd.  ...    -\<,  
URL: http://www.terrencemiao.com/                     ... (_)/(_) ..

Google