Hi, My smtp server dont't send mail correctly. I get mail back and it says: Recipient address rejected: User unknown in virtual mailbox table (in reply to RCPT TO command) I got the mail back when i followed this page: http://pingability.com/smtptest.jsp it should send the mail succesfully to a mail adres from pingability.com Someone who knows the solution? Thank you
Please test your server with a locally installed webmail client instead by sending a email from a local account on the server to itself and take a look at the mail log file if you get any errors.
In the webmail sending emails went good but when i do external smtp via Outlook or something else it goes wrong, i get the error when sending mail that says "The smtp server dont accept this smtp connection"
Please post the exact error message from the mail log that appears when the smtp connection is rejected.
In the logs i cannot find anything whats helpfull. This is the tail of maillog Oct 12 18:49:07 server1 amavis[30653]: (30653-03) post_process_request_hook: timer was not running Oct 12 18:49:07 server1 amavis[30653]: (30653-03) idle_proc, bye: was busy, 1.9 ms, total idle 2111.043 s, busy 8.024 s Oct 12 18:49:07 server1 amavis[30653]: (30653-03) load: 0 %, total idle 2111.043 s, busy 8.024 s Oct 12 18:50:01 server1 postfix/smtpd[695]: connect from server1.s-projects.nl[127.0.0.1] Oct 12 18:50:01 server1 postfix/smtpd[695]: lost connection after CONNECT from server1.s-projects.nl[127.0.0.1] Oct 12 18:50:01 server1 postfix/smtpd[695]: disconnect from server1.s-projects.nl[127.0.0.1] Oct 12 18:50:01 server1 pop3d: Connection, ip=[::ffff:127.0.0.1] Oct 12 18:50:01 server1 pop3d: Disconnected, ip=[::ffff:127.0.0.1] Oct 12 18:50:01 server1 imapd: Connection, ip=[::ffff:127.0.0.1] Oct 12 18:50:01 server1 imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0 When i do in windows 7 in CMD.exe [ telnet 213.163.64.99 25] i get connecting.... .... connection failed
Are you sure that you're connecting to the correct server in Outlook? Have you tried the server's IP instead of a hostname in Outlook?
Yes because when i do the telnet option it doesnt work, but when i do telnet on imap port 143 then it goes goed
What's the output of Code: netstat -tap ? Is the server hosted in a data center, or do you host it at home or in your office?
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:sanity *:* LISTEN 2157/rpc.statd tcp 0 0 server1.s-projects.nl:10024 *:* LISTEN 27749/amavisd (ch5- tcp 0 0 server1.s-projects.nl:10025 *:* LISTEN 30561/master tcp 0 0 *:mysql *:* LISTEN 30488/mysqld tcp 0 0 server1.s-proje:dyna-access *:* LISTEN 30654/clamd tcp 0 0 *:sunrpc *:* LISTEN 2116/portmap tcp 0 0 213.163.64.101:domain *:* LISTEN 30783/mydns tcp 0 0 213.163.64.100:domain *:* LISTEN 30783/mydns tcp 0 0 213.163.64.99:domain *:* LISTEN 30783/mydns tcp 0 0 server1.s-projects.n:domain *:* LISTEN 30783/mydns tcp 0 0 *:ftp *:* LISTEN 30758/pure-ftpd (SE tcp 0 0 *:smtp *:* LISTEN 30561/master tcp 0 0 server1.s-projects.nl:49211 server1.s-projects.nl:mysql ESTABLISHED 27749/amavisd (ch5- tcp 0 0 server1.s-projects.nl:mysql server1.s-projects.nl:49211 ESTABLISHED 30488/mysqld tcp 0 0 server1.s-projects.nl:32931 server1.s-projects.nl:mysql ESTABLISHED 28200/amavisd (ch4- tcp 0 0 server1.s-projects.nl:mysql server1.s-projects.nl:32931 ESTABLISHED 30488/mysqld tcp 0 0 *:imaps *:* LISTEN 30708/couriertcpd tcp 0 0 *op3s *:* LISTEN 30720/couriertcpd tcp 0 0 *op3 *:* LISTEN 30714/couriertcpd tcp 0 0 *:imap *:* LISTEN 30701/couriertcpd tcp 0 0 *:webcache *:* LISTEN 30734/httpd tcp 0 0 *:http *:* LISTEN 30734/httpd tcp 0 0 localhost6.localdoma:domain *:* LISTEN 30783/mydns tcp 0 0 *:ftp *:* LISTEN 30758/pure-ftpd (SE tcp 0 0 *:ssh *:* LISTEN 2384/sshd tcp 0 2072 ::ffff:213.163.64.99:ssh ip5653eaed.direct-ads:49289 ESTABLISHED 1894/0
The mailserver is listening on port 25, so that ok. Please post the output of: iptables -L also make sure that your internet access provider does not block port 25.
[root@server1 ~]# iptables -L Chain INPUT (policy DROP) target prot opt source destination DROP tcp -- anywhere 127.0.0.0/8 ACCEPT all -- anywhere anywhere state RELATED,ESTAB LISHED ACCEPT all -- anywhere anywhere DROP all -- BASE-ADDRESS.MCAST.NET/4 anywhere PUB_IN all -- anywhere anywhere PUB_IN all -- anywhere anywhere PUB_IN all -- anywhere anywhere PUB_IN all -- anywhere anywhere DROP all -- anywhere anywhere Chain FORWARD (policy DROP) target prot opt source destination ACCEPT all -- anywhere anywhere state RELATED,ESTAB LISHED DROP all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination PUB_OUT all -- anywhere anywhere PUB_OUT all -- anywhere anywhere PUB_OUT all -- anywhere anywhere PUB_OUT all -- anywhere anywhere Chain INT_IN (0 references) target prot opt source destination ACCEPT icmp -- anywhere anywhere DROP all -- anywhere anywhere Chain INT_OUT (0 references) target prot opt source destination ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere Chain PAROLE (12 references) target prot opt source destination ACCEPT all -- anywhere anywhere Chain PUB_IN (4 references) target prot opt source destination ACCEPT icmp -- anywhere anywhere icmp destination-un reachable ACCEPT icmp -- anywhere anywhere icmp echo-reply ACCEPT icmp -- anywhere anywhere icmp time-exceeded ACCEPT icmp -- anywhere anywhere icmp echo-request PAROLE tcp -- anywhere anywhere tcp dpt:ftp-data PAROLE tcp -- anywhere anywhere tcp dpt:ftp PAROLE tcp -- anywhere anywhere tcp dpt:ssh PAROLE tcp -- anywhere anywhere tcp dpt:smtp PAROLE tcp -- anywhere anywhere tcp dpt:domain PAROLE tcp -- anywhere anywhere tcp dpt:http PAROLE tcp -- anywhere anywhere tcp dptop3 PAROLE tcp -- anywhere anywhere tcp dpt:imap PAROLE tcp -- anywhere anywhere tcp dpt:https PAROLE tcp -- anywhere anywhere tcp dpt:mysql PAROLE tcp -- anywhere anywhere tcp dpt:webcache PAROLE tcp -- anywhere anywhere tcp dpt:27960 ACCEPT udp -- anywhere anywhere udp dpt:domain ACCEPT udp -- anywhere anywhere udp dpt:mysql ACCEPT udp -- anywhere anywhere udp dpt:27960 ACCEPT udp -- anywhere anywhere udp dpt:smtp DROP icmp -- anywhere anywhere DROP all -- anywhere anywhere Chain PUB_OUT (4 references) target prot opt source destination ACCEPT all -- anywhere anywhere Seems good isnt it?
Maybe this wil help: Oct 19 01:18:04 server1 postfix/smtp[5769]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 4840E2A8855D: from=, size=2515, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 44DD12A88588: from=, size=1011, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 0216A2A885C6: from=, size=4724, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 04A212A8858E: from=, size=5950, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 5F9AA2A88578: from=, size=795, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 580A12A88599: from=<>, size=3021, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 5DE8B2A885C4: from=, size=43300, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 5AC9B2A88548: from=, size=6896, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 571E92A885BA: from=, size=1085, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 5F1F52A885BB: from=, size=7902, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: EEE322A885B7: from=, size=6428, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: E70F72A88558: from=, size=4857, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: E485E2A885A3: from=, size=5615, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 9B05A2A885B2: from=, size=2537, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 971842A885D4: from=, size=5048, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 979702A8854E: from=, size=2091, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 96AF62A88538: from=, size=2941, nrcpt=1 (queue active) Oct 19 01:18:04 server1 postfix/smtp[5770]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024) Oct 18 23:18:04 server1 postfix/smtp[5769]: CD1BD2A88577: to=, relay=none, delay=115599, delays=115599/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused) Oct 18 23:18:04 server1 postfix/smtp[5770]: C72802A88563: to=, relay=none, delay=127140, delays=127140/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused) Oct 18 23:18:04 server1 postfix/smtp[5770]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024) Oct 18 23:18:04 server1 postfix/smtp[5769]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 971842A885D4: to=, relay=none, delay=11909, delays=11908/0.26/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 979702A8854E: to=, relay=none, delay=151888, delays=151887/0.26/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused) Oct 19 01:18:04 server1 postfix/qmgr[19378]: 96AF62A88538: to=, relay=none, delay=179929, delays=179929/0.27/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused)
[root@server1 ~]# netstat -tap Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:esro-emsdp *:* LISTEN 2156/rpc.statd tcp 0 0 server1.s-projects.nl:10025 *:* LISTEN 19370/master tcp 0 0 *:mysql *:* LISTEN 19299/mysqld tcp 0 0 server1.s-proje:dyna-access *:* LISTEN 19456/clamd tcp 0 0 *:sunrpc *:* LISTEN 2115/portmap tcp 0 0 213.163.64.101:domain *:* LISTEN 19574/mydns tcp 0 0 213.163.64.100:domain *:* LISTEN 19574/mydns tcp 0 0 213.163.64.99:domain *:* LISTEN 19574/mydns tcp 0 0 server1.s-projects.n:domain *:* LISTEN 19574/mydns tcp 0 0 *:ftp *:* LISTEN 19560/pure-ftpd (SE tcp 0 0 *:smtp *:* LISTEN 19370/master tcp 0 0 *:imaps *:* LISTEN 19510/couriertcpd tcp 0 0 *op3s *:* LISTEN 19522/couriertcpd tcp 0 0 *op3 *:* LISTEN 19516/couriertcpd tcp 0 0 *:imap *:* LISTEN 19503/couriertcpd tcp 0 0 *:webcache *:* LISTEN 838/httpd tcp 0 0 *:http *:* LISTEN 838/httpd tcp 0 0 localhost6.localdoma:domain *:* LISTEN 19574/mydns tcp 0 0 *:ftp *:* LISTEN 19560/pure-ftpd (SE tcp 0 0 *:ssh *:* LISTEN 2383/sshd tcp 0 1776 ::ffff:213.163.64.99:ssh ip5653eaed.direct-ads:49202 ESTABLISHED 21186/0 [root@server1 ~]#
Ok. postfix is listening on all interfaces. Please restart postfix and amavisd and then look again into the error log if any erors have been added when the daemons restart.
My netstat -tap results are the same as my post before (http://www.howtoforge.com/forums/showpost.php?p=207422&postcount=9), and now its not good? i restarted postfix and then amavisd en the new netstat -tap results are: the same. When i restarted amavisd it failed to stop and succeed to start
I'am not talking about netstat results. Postfix can be started and show up at netstat even if some parts of the postfix startup failed. And this is logged to the mail log then. So which lines had been added to the mail log as you restarted?