View Single Post
  #12  
Old 29th June 2012, 10:04
trinhbuuvinh trinhbuuvinh is offline
Junior Member
 
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by satimis View Post
Yes. hostname is correct

$ cat /etc/postfix/main.cf | grep hostname
Code:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
myhostname = ser01.mydomain.com
$ hostname
Code:
ser01.mydomain.com
$ hostname -f
Code:
ser01.mydomain.com
On domain register website under "A(Host)"
Host Points to
Code:
@	xxx.xxx.xxx.xxx (fixed ip)
mail	xxx.xxx.xxx.xxx (fixed ip)
ser01	xxx.xxx.xxx.xxx (fixed ip)
ser01.mydomain.com is the hostname for "ser01 xxx.xxx.xxx.xxx". "mail xxx.xxx.xxx.xxx" was added later.


Edit:

Performed following test.

Edited the hostname as "mail.mydomain.com" on /etc/postfix/main.cf, /etc/hosts and /etc/hostname. Reboot server and sent another mail to the server, mail still rejected.

$ hostname
mail.mydomain.com

$ hostname -f
mail.mydomain.com


$ tail /var/log/mail.log
Code:
Feb 12 20:07:43 mail postfix/smtp[1784]: warning: host mail.mydomain.com[xxx.xxx.xxx.xxx (fixed ip)]:25 greeted me with my own hostname mail.mydomain.com
Feb 12 20:07:43 mail postfix/smtp[1784]: warning: host mail.mydomain.com[xxx.xxx.xxx.xxx (fixed ip)]:25 replied to HELO/EHLO with my own hostname mail.mydomain.com
Feb 12 20:07:43 mail postfix/smtp[1784]: 486E4A009A: to=<sales@mydomain.com>, relay=mail.mydomain.com[xxx.xxx.xxx.xxx (fixed ip)]:25, delay=5.1, delays=0.02/0/5.1/0, dsn=5.4.6, status=bounced (mail for mail.mydomain.com loops back to myself)
Feb 12 20:07:43 mail postfix/smtpd[1756]: disconnect from unknown[xxx.xxx.xxx.xxx (fixed ip)]
Feb 12 20:07:43 mail postfix/cleanup[1765]: 6D0A7A009C: message-id=<20120212120743.6D0A7A009C@mail.mydomain.com>
Feb 12 20:07:43 mail postfix/qmgr[1584]: 6D0A7A009C: from=<>, size=5305, nrcpt=1 (queue active)
Feb 12 20:07:43 mail postfix/bounce[1796]: 486E4A009A: sender non-delivery notification: 6D0A7A009C
Feb 12 20:07:43 mail postfix/qmgr[1584]: 486E4A009A: removed
Feb 12 20:07:46 mail postfix/smtp[1784]: 6D0A7A009C: to=<somebody@yahoo.com>, relay=mta5.am0.yahoodns.net[209.191.88.254]:25, delay=2.8, delays=0/0/1.1/1.8, dsn=2.0.0, status=sent (250 ok dirdel)
Feb 12 20:07:46 mail postfix/qmgr[1584]: 6D0A7A009C: removed
$ tail /var/log/mail.err
Code:
Feb 11 11:25:35 ub1004ser02 dccproc[1703]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 11 18:36:15 ub1004ser02 dccproc[1143]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 11 22:16:28 ub1004ser02 dccproc[1135]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 11 22:35:42 ub1004ser02 dccproc[1716]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 11 23:56:19 ub1004ser02 dccproc[5355]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 12 00:00:21 ub1004ser02 dccproc[5371]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 12 19:36:47 ub1004ser02 dccproc[1144]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 12 19:57:35 ub1004ser02 dccproc[1831]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 12 20:04:03 mail dccproc[1141]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 12 20:07:34 mail dccproc[1769]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
$ tail /var/log/mail.warn
Code:
Feb 12 20:04:03 mail dccproc[1141]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 12 20:07:34 mail dccproc[1769]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1
Feb 12 20:07:43 mail postfix/smtp[1784]: warning: host mail.mydomain.com[xxx.xxx.xxx.xxx (fixed ip)]:25 greeted me with my own hostname mail.mydomain.com
Feb 12 20:07:43 mail postfix/smtp[1784]: warning: host mail.mydomain.com[xxx.xxx.xxx.xxx (fixed ip)]:25 replied to HELO/EHLO with my own hostname mail.mydomain.com
satimis
Hi anybody,

I have same problem. Can i help me give a suggest what should i do?

Thanks,
Vincent
Reply With Quote