postfix unable to receive mail.

February 6, 2012 at 21:59:43
Specs: Ubuntu 10.04 64bit, AMD Phenom II 6X
postfix can send mail but unable to receive mail.

Hi all,

fixed ip address
hostname - ser01.mydomain.com
On router - ports 25/443/995/80/8080/etc. pointing to 192.168.0.218 (local ip of the server)

I was following;
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 11.10)
http://www.howtoforge.com/virtual-u...

building this server on ubuntu-10.04 (LTS)


1)
sent 1st mail to server on yahoo mail.
sales@mydomain.com

Failed

# tail /var/log/mail.log
Feb 7 13:40:11 ser01 amavis[1106]: (01106-02) Passed CLEAN, [98.139.91.228] [xxx.xxx.xxx.xxx] <somebody@yahoo.com> -> <sales@mydomain.com>, Message-ID: <1328593199.63314.YahooMailNeo@web113203.mail.gq1.yahoo.com>, mail_id: c5+qVqqIhNZV, Hits: 0.992, size: 2971, queued_as: 8D257A009E, dkim_id=@yahoo.com,somebody@yahoo.com, 9518 ms
Feb 7 13:40:11 ser01 postfix/smtp[1954]: 78712A0018: to=<sales@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=10, delays=0.78/0/0/9.5, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01106-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 8D257A009E)
Feb 7 13:40:11 ser01 postfix/qmgr[1837]: 78712A0018: removed
Feb 7 13:40:11 ser01 postfix/smtp[1960]: 8D257A009E: to=<sales@mydomain.com>, relay=none, delay=0.06, delays=0.02/0/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=mail.mydomain.com type=A: Host not found)
Feb 7 13:40:11 ser01 postfix/cleanup[1953]: 9DD18A009F: message-id=<20120207054011.9DD18A009F@ser01.mydomain.com>
Feb 7 13:40:11 ser01 postfix/bounce[1961]: 8D257A009E: sender non-delivery notification: 9DD18A009F
Feb 7 13:40:11 ser01 postfix/qmgr[1837]: 9DD18A009F: from=<>, size=5501, nrcpt=1 (queue active)
Feb 7 13:40:11 ser01 postfix/qmgr[1837]: 8D257A009E: removed
Feb 7 13:40:14 ser01 postfix/smtp[1960]: 9DD18A009F: to=<somebody@yahoo.com>, relay=mta6.am0.yahoodns.net[66.94.236.34]:25, delay=2.7, delays=0/0/1.1/1.7, dsn=2.0.0, status=sent (250 ok dirdel)
Feb 7 13:40:14 ser01 postfix/qmgr[1837]: 9DD18A009F: removed


2)
sent 2nd mail to server on yahoo mail.
sales@ser01.mydomain.com

# tail /var/log/mail.log
Feb 7 13:28:06 ser01 postfix/smtpd[1931]: warning: cannot get RSA private key from file /etc/postfix/smtpd.key: disabling TLS support
Feb 7 13:28:06 ser01 postfix/smtpd[1931]: warning: TLS library problem: 1931:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:650:Expecting: ANY PRIVATE KEY:
Feb 7 13:28:06 ser01 postfix/smtpd[1931]: warning: TLS library problem: 1931:error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib:ssl_rsa.c:669:
Feb 7 13:28:09 ser01 postfix/smtpd[1931]: warning: 122.179.144.143: hostname ABTS-mum-Dynamic-143.144.179.122.airtelbroadband.in verification failed: Name or service not known
Feb 7 13:28:09 ser01 postfix/smtpd[1931]: connect from unknown[122.179.144.143]
Feb 7 13:28:10 ser01 postfix/smtpd[1931]: NOQUEUE: reject: RCPT from unknown[122.179.144.143]: 550 5.1.1 <mydomain@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<kphrfysejngwdu@angelpuss.org> to=<mydomain@mydomain.com> proto=SMTP helo=<angelpuss.org>
Feb 7 13:28:10 ser01 postfix/smtpd[1931]: disconnect from unknown[122.179.144.143]
Feb 7 13:31:30 ser01 postfix/anvil[1934]: statistics: max connection rate 1/60s for (smtp:122.179.144.143) at Feb 7 13:28:09
Feb 7 13:31:30 ser01 postfix/anvil[1934]: statistics: max connection count 1 for (smtp:122.179.144.143) at Feb 7 13:28:09
Feb 7 13:31:30 ser01 postfix/anvil[1934]: statistics: max cache size 1 at Feb 7 13:28:09

Pls help. TIA


B.R.
satimis


See More: postfix unable to receive mail.

Report •

#1
February 6, 2012 at 23:16:41
First, try to add the ip address of mail.mydomain.com and the domain name mail.mydomain.com to the hosts file in /etc/hosts.

Report back the result.


Report •

#2
February 6, 2012 at 23:47:12
Hi,

Amended /etc/hosts

$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 ser01.mydomain.com ser01
192.168.0.218 mail.mydomain.com

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

(remark: also tried ;
127.0.0.1 localhost
127.0.1.1 ser01.mydomain.com ser01
192.168.0.218 ser01.mydomain.com
)

sent both;
sales@mydomain.com
sales@ser01.mydomain.com

both mails rejected.

$ tail /var/log/mail.log
Feb 7 15:31:00 ser01 amavis[1143]: (01143-01) Passed CLEAN, [98.139.91.98] [xxx.xxx.xxx.xxx] <somebody@yahoo.com> -> <sales@mydomain.com>, Message-ID: <1328599852.43564.YahooMailNeo@web113208.mail.gq1.yahoo.com>, mail_id: gmkC4Dg1vFzJ, Hits: 0.993, size: 2965, queued_as: C1B62A009B, dkim_id=@yahoo.com,somebody@yahoo.com, 5816 ms
Feb 7 15:31:00 ser01 postfix/smtp[1695]: 64F99A0018: to=<sales@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.6, delays=0.79/0.01/0.01/5.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01143-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C1B62A009B)
Feb 7 15:31:00 ser01 postfix/qmgr[1579]: 64F99A0018: removed
Feb 7 15:31:00 ser01 postfix/smtp[1702]: C1B62A009B: to=<sales@mydomain.com>, relay=none, delay=0.06, delays=0.02/0/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=mail.mydomain.com type=A: Host not found)
Feb 7 15:31:00 ser01 postfix/cleanup[1694]: D81CAA009C: message-id=<20120207073100.D81CAA009C@ser01.mydomain.com>
Feb 7 15:31:00 ser01 postfix/bounce[1703]: C1B62A009B: sender non-delivery notification: D81CAA009C
Feb 7 15:31:00 ser01 postfix/qmgr[1579]: D81CAA009C: from=<>, size=5495, nrcpt=1 (queue active)
Feb 7 15:31:00 ser01 postfix/qmgr[1579]: C1B62A009B: removed
Feb 7 15:31:03 ser01 postfix/smtp[1702]: D81CAA009C: to=<somebody@yahoo.com>, relay=mta7.am0.yahoodns.net[98.139.175.225]:25, delay=3, delays=0.01/0/0.94/2.1, dsn=2.0.0, status=sent (250 ok dirdel)
Feb 7 15:31:03 ser01 postfix/qmgr[1579]: D81CAA009C: removed


satimis


Report •

#3
February 7, 2012 at 01:07:34
Have you also checked the /etc/postfix/main.cf for the correct $mydomain and $mynetworks and such kind of settings?

What dns server are you using?
Are you running named on the same server?
If so, create an MX and an A record for your mail server.

[EDIT]
Have you reloaded postfix after making changes?

postfix reload


Report •

Related Solutions

#4
February 9, 2012 at 01:45:32
Postfix has been restarted.

mynetworks = 127.0.0.0/8

There is no entry of mydomain on /etc/postfix/main.cf

domains are in the table of MySQL database "mail"

Database changed
mysql> SHOW tables;
+----------------+
| Tables_in_mail |
+----------------+
| domains |
| forwardings |
| transport |
| users |
+----------------+
4 rows in set (0.00 sec)

mysql> SELECT * from domains;
+-------------+
| domain |
+-------------+
| mydomain.com |
+-------------+
1 row in set (0.01 sec)

This server is prepared to serve multiple domains.

Bind9 is NOT installed. I'm running ISP DNS servers.

[quote]
If so, create an MX and an A record for your mail server.
[/quote]
Pls explain in detail. Thanks. On domain register's website?

B.R.
satimis


Report •

#5
February 9, 2012 at 12:36:44
MX record and A records are entries in the DNS server, so that postfix can do an MX lookup and get a valid reply.

But, first of all, have you checked, to what ip addresses postfix is listening to?
netstat -ant | grep ":25"

Also do an nslookup for your domain.
nslookup -q=a mydomain.com
nslookup -q=a mail.mydomain.com
nslookup -q=a serv01.mydomain.com

What did you get?


Report •

Ask Question