Hi all,

postfix can send mail but unable to receive mail.

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)
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 11.10) | HowtoForge - Linux Howtos and Tutorials

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
Code:
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
failed

# tail /var/log/mail.log
Code:
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