I have set up a fresh server with digitalocean following The Perfect Server - Ubuntu 14.04 (Apache2, PHP, MySQL, PureFTPD, BIND, Dovecot, ISPConfig 3) What I have done so far: I have made not changes to my mxrecords in digiralocean ( honestly - more because I do not know what to do there ) I set up the domain and mailboxes in ISPconfig I was getting an error when sending an email '"ERROR: Message not sent. Server replied: " I followed your post on https://www.howtoforge.com/community/threads/cannot-send-receive-email-through-squirrel-mail.61562/ Now there is not error inside squirellmail but the emails are not moving out nor coming in. Code: Jan 20 00:00:01 zen dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<zcPI27wpuAB/AAAB> Jan 20 00:00:01 zen postfix/smtpd[19619]: lost connection after CONNECT from localhost[127.0.0.1] Jan 20 00:00:01 zen postfix/smtpd[19619]: disconnect from localhost[127.0.0.1] Jan 20 00:02:22 zen postfix/scache[19586]: statistics: start interval Jan 19 23:59:02 Jan 20 00:02:22 zen postfix/scache[19586]: statistics: domain lookup hits=0 miss=1 success=0% Jan 20 00:04:02 zen postfix/qmgr[18952]: 0D0BE125F7B: from=<[email protected]>, size=2588, nrcpt=1 (queue active) Jan 20 00:04:02 zen postfix/smtp[19718]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused Jan 20 00:04:02 zen postfix/smtp[19718]: 0D0BE125F7B: to=<[email protected]>, relay=none, delay=1002, delays=1002/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) Jan 20 00:05:01 zen postfix/smtpd[19754]: connect from localhost[127.0.0.1] Jan 20 00:05:01 zen postfix/smtpd[19754]: warning: Milter service needs transport:endpoint instead of "inet:" Jan 20 00:05:01 zen postfix/smtpd[19754]: warning: Milter service needs transport:endpoint instead of "localhost:" Jan 20 00:05:01 zen postfix/smtpd[19754]: warning: Milter service needs transport:endpoint instead of "12301" Jan 20 00:05:01 zen dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<+Xmu7bwpAwB/AAAB> Jan 20 00:05:01 zen postfix/smtpd[19754]: lost connection after CONNECT from localhost[127.0.0.1] Jan 20 00:05:01 zen postfix/smtpd[19754]: disconnect from localhost[127.0.0.1] Jan 20 00:05:01 zen dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<UfCu7bwpwgB/AAAB> Jan 20 00:07:07 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=19805, secured, session=<eUcp9bwpBQB/AAAB> Jan 20 00:07:07 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 20 00:10:01 zen postfix/smtpd[19874]: connect from localhost[127.0.0.1] Jan 20 00:10:01 zen postfix/smtpd[19874]: warning: Milter service needs transport:endpoint instead of "inet:" Jan 20 00:10:01 zen postfix/smtpd[19874]: warning: Milter service needs transport:endpoint instead of "localhost:" Jan 20 00:10:01 zen postfix/smtpd[19874]: warning: Milter service needs transport:endpoint instead of "12301" Jan 20 00:10:01 zen dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<w/aL/7wpCgB/AAAB> Jan 20 00:10:01 zen dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<XSaM/7wpyQB/AAAB> Jan 20 00:10:01 zen postfix/smtpd[19874]: lost connection after CONNECT from localhost[127.0.0.1] Jan 20 00:10:01 zen postfix/smtpd[19874]: disconnect from localhost[127.0.0.1] Jan 20 00:14:02 zen postfix/qmgr[18952]: CC4091228A0: from=<[email protected]>, size=729, nrcpt=1 (queue active) Jan 20 00:14:02 zen postfix/qmgr[18952]: B9C4D125F4B: from=<[email protected]>, size=606, nrcpt=1 (queue active) Jan 20 00:14:02 zen postfix/qmgr[18952]: EA47B125F72: from=<[email protected]>, size=640, nrcpt=1 (queue active) Jan 20 00:14:02 zen postfix/qmgr[18952]: F3F5B125F5A: from=<[email protected]>, size=647, nrcpt=1 (queue active) Jan 20 00:14:02 zen postfix/smtp[19944]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused Jan 20 00:14:02 zen postfix/smtp[19945]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused Jan 20 00:14:02 zen postfix/smtp[19944]: CC4091228A0: to=<[email protected]>, orig_to=<root>, relay=none, delay=235612, delays=235612/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) Jan 20 00:14:02 zen postfix/smtp[19945]: B9C4D125F4B: to=<[email protected]>, relay=none, delay=248280, delays=248280/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) Jan 20 00:14:02 zen postfix/smtp[19945]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused Jan 20 00:14:02 zen postfix/smtp[19944]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused Jan 20 00:14:02 zen postfix/smtp[19945]: EA47B125F72: to=<[email protected]>, orig_to=<root>, relay=none, delay=235497, delays=235497/0.04/0.01/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) Jan 20 00:14:02 zen postfix/smtp[19944]: F3F5B125F5A: to=<[email protected]>, orig_to=<amavis>, relay=none, delay=248157, delays=248157/0.04/0.01/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) Jan 20 00:15:01 zen dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<ifFzEb0pFgB/AAAB> Jan 20 00:15:01 zen postfix/smtpd[19982]: connect from localhost[127.0.0.1] Jan 20 00:15:01 zen postfix/smtpd[19982]: warning: Milter service needs transport:endpoint instead of "inet:" Jan 20 00:15:01 zen postfix/smtpd[19982]: warning: Milter service needs transport:endpoint instead of "localhost:" Jan 20 00:15:01 zen postfix/smtpd[19982]: warning: Milter service needs transport:endpoint instead of "12301" Jan 20 00:15:01 zen dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<iJh0Eb0p1QB/AAAB> Jan 20 00:15:01 zen postfix/smtpd[19982]: lost connection after CONNECT from localhost[127.0.0.1] Jan 20 00:15:01 zen postfix/smtpd[19982]: disconnect from localhost[127.0.0.1] Jan 20 00:17:07 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=20038, secured, session=<glP2GL0pGAB/AAAB> Jan 20 00:17:07 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 20 00:17:22 zen postfix/scache[19950]: statistics: start interval Jan 20 00:14:02 Jan 20 00:17:22 zen postfix/scache[19950]: statistics: domain lookup hits=0 miss=2 success=0% How can i fix this issue? Thanks, Leo
Thank you florian030 for the response. This is my main.cf Code: virtual_alias_domains = virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_mailbox_base = /var/vmail virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf smtpd_tls_security_level = may transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf smtpd_client_message_rate_limit = 100 maildrop_destination_concurrency_limit = 1 maildrop_destination_recipient_limit = 1 virtual_transport = dovecot header_checks = regexp:/etc/postfix/header_checks mime_header_checks = regexp:/etc/postfix/mime_header_checks nested_header_checks = regexp:/etc/postfix/nested_header_checks body_checks = regexp:/etc/postfix/body_checks owner_request_special = no smtp_tls_security_level = may smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3 smtpd_tls_protocols = !SSLv2,!SSLv3 smtp_tls_protocols = !SSLv2,!SSLv3 dovecot_destination_recipient_limit = 1 smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth content_filter = amavis:[127.0.0.1]:10024 receive_override_options = no_address_mappings milter_protocol = 2 milter_default_action = accept smtpd_milters = inet: localhost: 12301 non_smtpd_milters = inet: localhost: 12301 This is my master.cf Code: # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master" or # on-line: http://www.postfix.org/master.5.html). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd #smtp inet n - - - 1 postscreen #smtpd pass - - - - - smtpd #dnsblog unix - - - - 0 dnsblog #tlsproxy unix - - - - 0 tlsproxy submission inet n - - - - smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o syslog_name=postfix/submission # -o smtpd_tls_security_level=encrypt # -o smtpd_sasl_auth_enable=yes # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING smtps inet n - - - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o syslog_name=postfix/smtps # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd pickup unix n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr unix n - n 300 1 qmgr Sincerely appreciate your assistance and help!
Milter is not used on a ISPConfig setup. Comment out these lines: milter_protocol = 2 milter_default_action = accept smtpd_milters = inet: localhost: 12301 non_smtpd_milters = inet: localhost: 12301 and restart postfix.
Till, Thanks for the response. I have commented out the lines and restarted postfix but to no avail. I tried sending and recieving emails and it did not work. This is my main.cf after commenting out the lines Code: virtual_alias_domains = virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_mailbox_base = /var/vmail virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf smtpd_tls_security_level = may transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf smtpd_client_message_rate_limit = 100 maildrop_destination_concurrency_limit = 1 maildrop_destination_recipient_limit = 1 virtual_transport = dovecot header_checks = regexp:/etc/postfix/header_checks mime_header_checks = regexp:/etc/postfix/mime_header_checks nested_header_checks = regexp:/etc/postfix/nested_header_checks body_checks = regexp:/etc/postfix/body_checks owner_request_special = no smtp_tls_security_level = may smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3 smtpd_tls_protocols = !SSLv2,!SSLv3 smtp_tls_protocols = !SSLv2,!SSLv3 dovecot_destination_recipient_limit = 1 smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth content_filter = amavis:[127.0.0.1]:10024 receive_override_options = no_address_mappings #milter_protocol = 2 #milter_default_action = accept #smtpd_milters = inet: localhost: 12301 #non_smtpd_milters = inet: localhost: 12301 I still have made no changes or additions to my digitalocean mx records (I hope this is ok). I just wanted to add that I had previously added this line ":/usr/share/squirrelmail:/etc/squirrelmail" to the Sites -> Web Domains -> Options ->PHP open_basedir /// I hope this is O.K . I had read this in a post you had made on the forums. Appreciate your patience. Any further suggestions?
Thats ok, but you have to test the mail system then locally by using webmail (login to webmail and send a test message to the same address that you used for the webmail login. the mail should arrive after 20 - 30 seconds in the inbox. And the error messages are still the same in mail.log when you test it?
Till, No change. I logged in with the into the mailbox sent a email to the same email and no reply. What is happening is that all the emails are in the sent folder but not going anywhere. The inbox is still empty. When sending an email to this mailbox from gmail I am not getting any error. Pasting my mail.log Code: Jan 22 02:02:17 zen postfix/cleanup[28911]: DCED81200AC: message-id=<[email protected]> Jan 22 02:02:17 zen postfix/smtpd[28905]: disconnect from localhost[127.0.0.1] Jan 22 02:02:17 zen postfix/qmgr[19087]: DCED81200AC: from=<[email protected]>, size=705, nrcpt=1 (queue active) Jan 22 02:02:17 zen postfix/smtp[28879]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused Jan 22 02:02:17 zen postfix/smtp[28879]: DCED81200AC: to=<[email protected]>, relay=none, delay=0.08, delays=0.07/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) Jan 22 02:02:17 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28914, secured, session=<YzPBzOYpagB/AAAB> Jan 22 02:02:18 zen dovecot: imap([email protected]): Disconnected: Logged out in=597 out=524 Jan 22 02:02:18 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28916, secured, session=<7wHEzOYpbQB/AAAB> Jan 22 02:02:18 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 Jan 22 02:02:28 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28918, secured, session=<b5NizeYpbgB/AAAB> Jan 22 02:02:28 zen dovecot: imap([email protected]): Disconnected: Logged out in=291 out=3543 Jan 22 02:02:35 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28920, secured, session=<ZlfRzeYpbwB/AAAB> Jan 22 02:02:35 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 22 02:02:37 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28922, secured, session=<ymbqzeYpcAB/AAAB> Jan 22 02:02:37 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 22 02:02:39 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28924, secured, session=<kNQGzuYpcQB/AAAB> Jan 22 02:02:39 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 22 02:02:45 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28926, secured, session=<+HpfzuYpcgB/AAAB> Jan 22 02:02:45 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 Jan 22 02:02:47 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28928, secured, session=<6GJ+zuYpcwB/AAAB> Jan 22 02:02:47 zen dovecot: imap([email protected]): Disconnected: Logged out in=120 out=1541 Jan 22 02:02:49 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28930, secured, session=<C3OdzuYpdAB/AAAB> Jan 22 02:02:49 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 Jan 22 02:02:51 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28932, secured, session=<9Ue8zuYpdQB/AAAB> Jan 22 02:02:51 zen dovecot: imap([email protected]): Disconnected: Logged out in=114 out=1541 Jan 22 02:02:52 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28934, secured, session=<UbjUzuYpdgB/AAAB> Jan 22 02:02:52 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 Jan 22 02:02:54 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28936, secured, session=<OJrxzuYpdwB/AAAB> Jan 22 02:02:54 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 22 02:02:56 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28938, secured, session=<SMIPz+YpeAB/AAAB> Jan 22 02:02:56 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 22 02:03:07 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28951, secured, session=<4s+xz+YpeQB/AAAB> Jan 22 02:03:07 zen dovecot: imap([email protected]): Disconnected: Logged out in=138 out=1541 Jan 22 02:03:09 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28953, secured, session=<a83Mz+YpegB/AAAB> Jan 22 02:03:09 zen dovecot: imap([email protected]): Disconnected: Logged out in=132 out=1541 Jan 22 02:03:10 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28955, secured, session=<qj3kz+YpewB/AAAB> Jan 22 02:03:10 zen dovecot: imap([email protected]): Disconnected: Logged out in=135 out=1541 Jan 22 02:03:12 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=28957, secured, session=<nNf/z+YpfAB/AAAB> Jan 22 02:03:12 zen dovecot: imap([email protected]): Disconnected: Logged out in=138 out=1541 Jan 22 02:05:01 zen dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<gdB/1uYpgQB/AAAB> Jan 22 02:05:01 zen postfix/smtpd[29100]: connect from localhost[127.0.0.1] Jan 22 02:05:01 zen dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<GtiA1uYpQAB/AAAB> Jan 22 02:05:01 zen postfix/smtpd[29100]: lost connection after CONNECT from localhost[127.0.0.1] Jan 22 02:05:01 zen postfix/smtpd[29100]: disconnect from localhost[127.0.0.1] Jan 22 02:06:08 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=29142, secured, session=<IDF92uYpgwB/AAAB> Jan 22 02:06:08 zen dovecot: imap([email protected]): Disconnected: Logged out in=138 out=1541 Jan 22 02:06:09 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=29144, secured, session=<vGmU2uYphAB/AAAB> Jan 22 02:06:09 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 Jan 22 02:06:11 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=29146, secured, session=<hsem2uYphQB/AAAB> Jan 22 02:06:11 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 After finding no error, I see this from my gmail sent folder selecting show original messag. Code: MIME-Version: 1.0 Received: by 10.64.0.244 with HTTP; Thu, 21 Jan 2016 23:11:18 -0800 (PST) Date: Fri, 22 Jan 2016 12:41:18 +0530 Delivered-To: [email protected] Message-ID: <[email protected]> Subject: Testing From: "T (L) e" <[email protected]> To: [email protected] Content-Type: multipart/alternative; boundary=f46d04479539f446640529e6ec53 --f46d04479539f446640529e6ec53 Content-Type: text/plain; charset=UTF-8 Ty Wh (L)
I tried this but seem to be getting an error. I even installed amavisd and then tried to restart. This is what i am seeing Code: root@x:~# /etc/init.d/amavis restart Stopping amavisd: (not running). Starting amavisd: (failed). root@x:~# /etc/init.d/clamav-daemon restart * Stopping ClamAV daemon clamd [ OK ] * Starting ClamAV daemon clamd /etc/init.d/clamav-daemon: line 327: 4167 Killed start-stop-daemon --start -o -c $User --exec $DAEMON while checking vi /etc/amavis/conf.d/15-content_filter_mode if found these lines are commented Code: #@bypass_virus_checks_maps = ( # \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);
Thats ok. leave them as they are. The most likely issue with amavisd is a wrongly set hostname. Does the command: hostname -f return a fully qualified domain name like server1.example.com?
Yes it is gives back the zen.zypot.com Code: root@zen:~# hostname -f zen.zypot.com This is from digitalocean Code: $ORIGIN zypot.com. $TTL 1800 zypot.com. IN SOA ns1.digitalocean.com. hostmaster.zypot.com. 1453****43 1**00 3**0 6***00 1800 zypot.com. 1800 IN NS ns1.digitalocean.com. zypot.com. 1800 IN NS ns2.digitalocean.com. zypot.com. 1800 IN NS ns3.digitalocean.com. zypot.com. 1800 IN A 128.199.151.200 www.zypot.com. 1800 IN CNAME zypot.com. *.zypot.com. 1800 IN CNAME zypot.com.
You can try to increase the loglevel from amavis in /etc/amavis/conf.d/50-user $log_level = 3; restart amavis and check your mail.log
This is when trying to restart amavis Code: root@zen:~# /etc/init.d/amavis restart Stopping amavisd: (not running). Starting amavisd: (failed). This is from my mail.log Code: root@zen:~# tail -n 50 /var/log/mail.log Jan 24 05:47:02 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10473, secured, session=<6ZkqLBIqygB/AAAB> Jan 24 05:47:02 zen dovecot: imap([email protected]): Disconnected: Logged out in=203 out=1524 Jan 24 05:47:18 zen postfix/smtpd[10474]: connect from localhost[127.0.0.1] Jan 24 05:47:18 zen postfix/smtpd[10474]: 1C3CC125CF0: client=localhost[127.0.0.1] Jan 24 05:47:18 zen postfix/cleanup[10480]: 1C3CC125CF0: message-id=<[email protected]> Jan 24 05:47:18 zen postfix/qmgr[19087]: 1C3CC125CF0: from=<[email protected]>, size=721, nrcpt=1 (queue active) Jan 24 05:47:18 zen postfix/smtpd[10474]: disconnect from localhost[127.0.0.1] Jan 24 05:47:18 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10483, secured, session=<peQcLRIq1AB/AAAB> Jan 24 05:47:18 zen postfix/smtp[10481]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused Jan 24 05:47:18 zen postfix/smtp[10481]: 1C3CC125CF0: to=<[email protected]>, relay=none, delay=0.13, delays=0.08/0.05/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) Jan 24 05:47:18 zen dovecot: imap([email protected]): Disconnected: Logged out in=605 out=524 Jan 24 05:47:18 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10488, secured, session=<cBIgLRIq1wB/AAAB> Jan 24 05:47:18 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 Jan 24 05:47:21 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10490, secured, session=<slhULRIq2AB/AAAB> Jan 24 05:47:21 zen dovecot: imap([email protected]): Disconnected: Logged out in=291 out=3930 Jan 24 05:48:14 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10503, secured, session=<EBF7MBIq2QB/AAAB> Jan 24 05:48:14 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 24 05:48:16 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10505, secured, session=<E/aSMBIq2gB/AAAB> Jan 24 05:48:16 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 24 05:48:16 zen postfix/smtpd[10474]: connect from mail-ig0-f180.google.com[209.85.213.180] Jan 24 05:48:17 zen postfix/smtpd[10474]: A0F12125F5D: client=mail-ig0-f180.google.com[209.85.213.180] Jan 24 05:48:18 zen postfix/cleanup[10480]: A0F12125F5D: message-id=<CAK9oTtqv0U+b+PqoTSyAQ13qk268F4xeCLhnm=3gRzC176j52Q@mail.gmail.com> Jan 24 05:48:18 zen postfix/qmgr[19087]: A0F12125F5D: from=<[email protected]>, size=5870, nrcpt=1 (queue active) Jan 24 05:48:18 zen postfix/smtp[10481]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused Jan 24 05:48:18 zen postfix/smtp[10481]: A0F12125F5D: to=<[email protected]>, relay=none, delay=0.45, delays=0.45/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) Jan 24 05:48:18 zen postfix/smtpd[10474]: disconnect from mail-ig0-f180.google.com[209.85.213.180] Jan 24 05:48:18 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10508, secured, session=<aia6MBIq3gB/AAAB> Jan 24 05:48:18 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 24 05:48:23 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10510, secured, session=<RS7+MBIq3wB/AAAB> Jan 24 05:48:23 zen dovecot: imap([email protected]): Disconnected: Logged out in=138 out=1541 Jan 24 05:48:25 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10512, secured, session=<sfgaMRIq4AB/AAAB> Jan 24 05:48:25 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 Jan 24 05:48:27 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10514, secured, session=<Rgg7MRIq4QB/AAAB> Jan 24 05:48:27 zen dovecot: imap([email protected]): Disconnected: Logged out in=120 out=1541 Jan 24 05:48:28 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10516, secured, session=<4aFQMRIq4gB/AAAB> Jan 24 05:48:28 zen dovecot: imap([email protected]): Disconnected: Logged out in=291 out=3930 Jan 24 05:48:30 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10518, secured, session=<WZZqMRIq4wB/AAAB> Jan 24 05:48:30 zen dovecot: imap([email protected]): Disconnected: Logged out in=132 out=1541 Jan 24 05:48:31 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10520, secured, session=<Xo14MRIq5AB/AAAB> Jan 24 05:48:31 zen dovecot: imap([email protected]): Disconnected: Logged out in=135 out=1541 Jan 24 05:48:33 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10522, secured, session=<v7mZMRIq5QB/AAAB> Jan 24 05:48:33 zen dovecot: imap([email protected]): Disconnected: Logged out in=138 out=1541 Jan 24 05:48:34 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10524, secured, session=<BAGkMRIq5gB/AAAB> Jan 24 05:48:34 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 Jan 24 05:48:34 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10526, secured, session=<TjGnMRIq5wB/AAAB> Jan 24 05:48:34 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 Jan 24 05:48:35 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10528, secured, session=<OCW6MRIq6AB/AAAB> Jan 24 05:48:35 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541 Jan 24 05:48:36 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10530, secured, session=<s2bMMRIq6QB/AAAB> Jan 24 05:48:36 zen dovecot: imap([email protected]): Disconnected: Logged out in=117 out=1541
Till, Yes i ran the mail.log after restarting amavis. However I see two emails showing undelivered in my mailbox (squirellmail) Code: Subject: Undelivered Mail Returned to Sender From: "Mail Delivery System" <[email protected]> Date: Sun, January 24, 2016 11:56 pm To: [email protected] Priority: Normal Options: View Full Header | View Printable Version | Download this as a file This is the mail system at host zen.zypot.com. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <[email protected]>: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused I repeated the tail after restarting amavis Code: root@zen:~# /etc/init.d/amavis restart Stopping amavisd: (not running). Starting amavisd: (failed). root@zen:~# tail -n 50 /var/log/mail.log Jan 26 02:36:28 zen dovecot: imap([email protected]): Disconnected: Logged out in=294 out=2565 Jan 26 02:36:31 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13923, secured, session=<NfuIvjcqdAB/AAAB> Jan 26 02:36:31 zen dovecot: imap([email protected]): Disconnected: Logged out in=291 out=4323 Jan 26 02:36:33 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13925, secured, session=<wXWhvjcqdQB/AAAB> Jan 26 02:36:33 zen dovecot: imap([email protected]): Disconnected: Logged out in=142 out=1583 Jan 26 02:36:34 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13927, secured, session=<gvW5vjcqdgB/AAAB> Jan 26 02:36:34 zen dovecot: imap([email protected]): Disconnected: Logged out in=138 out=1541 Jan 26 02:36:36 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13929, secured, session=<06/YvjcqdwB/AAAB> Jan 26 02:36:37 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:38 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13934, secured, session=<FWXuvjcqeAB/AAAB> Jan 26 02:36:38 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:39 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13936, secured, session=<8eb5vjcqeQB/AAAB> Jan 26 02:36:39 zen dovecot: imap([email protected]): Disconnected: Logged out in=138 out=1541 Jan 26 02:36:39 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13938, secured, session=<G2UFvzcqegB/AAAB> Jan 26 02:36:39 zen dovecot: imap([email protected]): Disconnected: Logged out in=294 out=2565 Jan 26 02:36:43 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13940, secured, session=<7hE2vzcqewB/AAAB> Jan 26 02:36:43 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:43 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13942, secured, session=<lFtDvzcqfAB/AAAB> Jan 26 02:36:43 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:44 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13944, secured, session=<FjBGvzcqfQB/AAAB> Jan 26 02:36:44 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:45 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13946, secured, session=<L2JWvzcqfgB/AAAB> Jan 26 02:36:45 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:46 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13948, secured, session=<psdrvzcqfwB/AAAB> Jan 26 02:36:46 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:47 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13950, secured, session=<xgdyvzcqgAB/AAAB> Jan 26 02:36:47 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:48 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13952, secured, session=<S8iKvzcqgQB/AAAB> Jan 26 02:36:48 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:49 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13954, secured, session=<hACSvzcqggB/AAAB> Jan 26 02:36:49 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:49 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13956, secured, session=<cs6VvzcqgwB/AAAB> Jan 26 02:36:49 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:49 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13958, secured, session=<wfaYvzcqhAB/AAAB> Jan 26 02:36:49 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:49 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13960, secured, session=<WT+bvzcqhQB/AAAB> Jan 26 02:36:49 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:49 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13962, secured, session=<YRaevzcqhgB/AAAB> Jan 26 02:36:49 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:36:50 zen dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=13964, secured, session=<kyWhvzcqhwB/AAAB> Jan 26 02:36:50 zen dovecot: imap([email protected]): Disconnected: Logged out in=79 out=777 Jan 26 02:37:13 zen amavis[13988]: logging initialized, log level 3, syslog: amavis.mail Jan 26 02:37:13 zen amavis[13988]: starting. /usr/sbin/amavisd-new at zen.zypot.com amavisd-new-2.7.1 (20120429), Unicode aware, LANG="en_US.UTF-8" Jan 26 02:37:13 zen amavis[13988]: perl=5.018002, user=, EUID: 112 (112); group=, EGID: 122 122 (122 122) Jan 26 02:37:14 zen amavis[13988]: INFO: no optional modules: Unix::Getrusage Jan 26 02:37:14 zen amavis[13988]: SpamControl: scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin Jan 26 02:37:14 zen amavis[13988]: INFO: SA version: 3.4.0, 3.004000, no optional modules: Net::CIDR::Lite Encode::Detect Razor2::Client::Agent IP::Country::Fast Image::Info Image::Info::GIF Image::Info::JPEG Image::Info::PNG Image::Info::BMP Image::Info::TIFF auto::NetAddr::IP::full6 auto::NetAddr::IP::Util::inet_n2dx auto::NetAddr::IP::Util::inet_n2ad auto::NetAddr::IP::Util::inet_any2n auto::NetAddr::IP::Util::ipv6_aton Jan 26 02:37:14 zen amavis[13988]: SpamControl: init_pre_chroot on SpamAssassin done Jan 26 02:37:14 zen amavis[13988]: (!)Net::Server: 2016/01/26-02:37:14 Couldn't fork: [Cannot allocate memory] at /usr/share/perl5/Net/Server/Daemonize.pm line 182.\n\n at line 159 in file /usr/share/perl5/Net/Server.pm Jan 26 02:37:14 zen amavis[13988]: Net::Server: 2016/01/26-02:37:14 Server closing!
I get this when use the code Code: root@zen:~# which amavisd-new /usr/sbin/amavisd-new root@zen:~# Please advise...
That's ok so far. Did you really start with a fresh and empty minimal setup when you installed this server and followed only the perfect server tutorial and no other guide? To me it looks like there was an other control panel or setup installed on this server so it was not a fresh minimal install at the beginning or you installed some other things that are not described in the perfect server as there can not be milter lines in main.cf when you followed the perfect server tutorial. Maybe you should consider to just reinstall the server from scratch, starting with a clean and empty minimal ubuntu system and follow only the perfect server guide, this is probably faster then trying to debug your current setup.
Till, I surely followed the Perfect Server guide only, more because I have no recourse to any other. However, i will take your advise. I will reinstall the whole server today and get back to you. Thanks for all the assistance so far.