Hi all, postfix can send mail but fails 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) http://www.howtoforge.com/virtual-u...x-courier-mysql-and-squirrelmail-ubuntu-11.10 building this server on ubuntu-10.04 (LTS) running on VM or Oracle VirtualBox 1) sent 1st mail to server on yahoo mail. [email protected] 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] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: c5+qVqqIhNZV, Hits: 0.992, size: 2971, queued_as: 8D257A009E, [email protected],[email protected], 9518 ms Feb 7 13:40:11 ser01 postfix/smtp[1954]: 78712A0018: to=<[email protected]>, 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=<[email protected]>, 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=<[email protected]> 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=<[email protected]>, 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. [email protected] # 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 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table; from=<[email protected]> to=<[email protected]> 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 $ dig mydomain.com mx Code: ; <<>> DiG 9.7.3 <<>> mydomain.com mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55645 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 2, ADDITIONAL: 5 ;; QUESTION SECTION: ;mydomain.com. IN MX ;; ANSWER SECTION: mydomain.com. 3600 IN MX 10 ser01.mydomain.com. mydomain.com. 3600 IN MX 20 smtp.secureserver.net. mydomain.com. 3600 IN MX 30 mailstore1.secureserver.net. ;; AUTHORITY SECTION: mydomain.com. 2636 IN NS ns26.domaincontrol.com. mydomain.com. 2636 IN NS ns25.domaincontrol.com. ;; ADDITIONAL SECTION: ser01.mydomain.com. 2896 IN A xxx.xxx.xxx.xxx smtp.secureserver.net. 4 IN A 216.69.186.201 mailstore1.secureserver.net. 4 IN A 72.167.238.201 ns25.domaincontrol.com. 49235 IN A 216.69.185.13 ns26.domaincontrol.com. 49235 IN A 208.109.255.13 ;; Query time: 53 msec ;; SERVER: 192.168.0.1#53(192.168.0.1) ;; WHEN: Tue Feb 7 19:41:48 2012 ;; MSG SIZE rcvd: 253 $ dig ser01.mydomain.com mx Code: ; <<>> DiG 9.7.3 <<>> ser01.mydomain.com mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44137 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;ser01.mydomain.com. IN MX ;; AUTHORITY SECTION: mydomain.com. 900 IN SOA ns25.domaincontrol.com. dns.jomax.net. 2012020702 28800 7200 604800 3600 ;; Query time: 54 msec ;; SERVER: 192.168.0.1#53(192.168.0.1) ;; WHEN: Tue Feb 7 19:43:39 2012 ;; MSG SIZE rcvd: 109 $ dig mail.mydomain.com mx Code: ; <<>> DiG 9.7.3 <<>> mail.mydomain.com mx ;; global options: +cmd ;; connection timed out; no servers could be reached On server (VM) terminal ======================= $ dig mail.mydomain.com mx Code: ; <<>> DiG 9.7.0-P1 <<>> mail.mydomain.com mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 25279 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.mydomain.com. IN MX ;; AUTHORITY SECTION: mydomain.com. 2750 IN SOA ns25.domaincontrol.com. dns.jomax.net. 2012020702 28800 7200 604800 3600 ;; Query time: 33 msec ;; SERVER: 202.14.67.4#53(202.14.67.4) ;; WHEN: Tue Feb 7 19:45:07 2012 ;; MSG SIZE rcvd: 102 Pls help. TIA B.R. satimis
According to your Howto on; Code: 13 Populate The Database And Test If you want to make entries in the other two tables, that would look like this: ... I already did Code: INSERT INTO `transport` (`domain`, `transport`) VALUES ('mydomain.com', 'smtp:mail.mydomain.com'); mysql> SELECT * from transport; Code: +-------------+-----------------------+ | domain | transport | +-------------+-----------------------+ | mydomain.com | smtp:mail.mydomain.com | +-------------+-----------------------+ 1 row in set (0.00 sec) After hours of working now it comes to following state: $ tail /var/log/mail.log Code: Feb 9 10:04:43 ub1004ser02 postfix/qmgr[1809]: 3B0C0A009A: from=<[email protected]>, size=2966, nrcpt=1 (queue active) Feb 9 10:04:43 ub1004ser02 postfix/smtp[1880]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused Feb 9 10:04:43 ub1004ser02 postfix/smtp[1880]: 3B0C0A009A: to=<[email protected]>, relay=none, delay=1136, delays=1136/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) Feb 9 10:04:43 ub1004ser02 postfix/smtpd[1872]: connect from e-bs.regit.ru[91.190.232.8] Feb 9 10:04:44 ub1004ser02 postfix/smtpd[1872]: NOQUEUE: reject: RCPT from e-bs.regit.ru[91.190.232.8]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<e-bs.regit.ru> Feb 9 10:04:44 ub1004ser02 postfix/smtpd[1872]: lost connection after RCPT from e-bs.regit.ru[91.190.232.8] Feb 9 10:04:44 ub1004ser02 postfix/smtpd[1872]: disconnect from e-bs.regit.ru[91.190.232.8] Feb 9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection rate 1/60s for (smtp:206.72.127.11) at Feb 9 10:03:37 Feb 9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection count 1 for (smtp:206.72.127.11) at Feb 9 10:03:37 Feb 9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max cache size 1 at Feb 9 10:03:37 On server VM terminal ===================== $ dig mail.mydomain.com Code: ; <<>> DiG 9.7.0-P1 <<>> mail.mydomain.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33735 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.mydomain.com. IN A ;; AUTHORITY SECTION: mydomain.com. 3599 IN SOA ns25.domaincontrol.com. dns.jomax.net. 2012020704 28800 7200 604800 3600 ;; Query time: 19 msec ;; SERVER: 202.14.67.4#53(202.14.67.4) (ISP DNS) ;; WHEN: Thu Feb 9 10:16:27 2012 ;; MSG SIZE rcvd: 102 On host terminal ================ $ dig mail.mydomain.com Code: ; <<>> DiG 9.7.3 <<>> mail.mydomain.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 49391 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.mydomain.com. IN A ;; AUTHORITY SECTION: mydomain.com. 3510 IN SOA ns25.domaincontrol.com. dns.jomax.net. 2012020704 28800 7200 604800 3600 ;; Query time: 18 msec ;; SERVER: 202.14.67.4#53(202.14.67.4) (ISP DNS) ;; WHEN: Thu Feb 9 10:17:56 2012 ;; MSG SIZE rcvd: 102 B.R. satimis