Cannot send mail, new install, First followed perfect server Ubuntu 12.04LTS, and finished with http://www.howtoforge.com/installin...tabase-cluster-on-debian-6.0-with-ispconfig-3 I made a mess when trying to get MySql install and replication to work and ended up uninstalling all MySql packages and then reinstalled them. After some reading I found a tip about postfix-mysql, I didnt it have any more and don't know why. reinstalled # apt-get -y install postfix-mysql Installed mailutils and tried to send mail from command line # mail -s "hello world" [email protected] Don't work. Read this but not sure if applicable for me: http://www.howtoforge.com/forums/showpost.php?p=305862&postcount=4 //millpark10 (URLs changed, not real) ****************************************************** Mail Queue (Server : jan1.kicks-ass.net) Data from: 2013-12-29 10:35 -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- 2868C440DC2 379 Sun Dec 29 00:01:02 [email protected] (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=07574-16 - Temporary MTA failure on relaying, From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 98) line 596, line 533.): id=07574-16 (in reply to end of DATA command)) [email protected] ***************************************************** Mail - Log (Server : jan1.kicks-ass.net) Data from: 2013-12-29 10:55 Dec 29 10:44:48 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:44:48 jan1 postfix/smtpd[15143]: fatal: no SASL authentication mechanisms Dec 29 10:44:48 jan1 postfix/smtpd[15145]: fatal: no SASL authentication mechanisms Dec 29 10:44:49 jan1 postfix/master[1986]: warning: process /usr/lib/postfix/smtpd pid 15143 exit status 1 Dec 29 10:44:49 jan1 postfix/master[1986]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Dec 29 10:44:49 jan1 postfix/master[1986]: warning: process /usr/lib/postfix/smtpd pid 15145 exit status 1 Dec 29 10:44:49 jan1 amavis[15052]: (15052-01) (!)FWD via SMTP: <[email protected]> -> <[email protected]>, 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 98) line 596, <GEN35> line 24.): id=15052-01 Dec 29 10:44:49 jan1 amavis[8865]: (08865-19) (!)FWD via SMTP: <[email protected]> -> <[email protected]>,<"."@jan1.kicks-ass.net>, 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 98) line 596, <GEN35> line 478.): id=08865-19 Dec 29 10:44:49 jan1 amavis[15052]: (15052-01) Blocked MTA-BLOCKED, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: ueBw6-xfTsfd, Hits: 0, size: 365, 1901 ms Dec 29 10:44:49 jan1 amavis[8865]: (08865-19) Blocked MTA-BLOCKED, <[email protected]> -> <[email protected]>,<"."@jan1.kicks-ass.net>, Message-ID: <[email protected]>, mail_id: wEyzoERYIU+X, Hits: 0, size: 377, 1893 ms Dec 29 10:44:49 jan1 postfix/smtp[15137]: 54C79441389: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=38237, delays=38235/0.01/0.02/1.9, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=15052-01 - Temporary MTA failure on relaying, From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 98) line 596, <GEN35> line 24.): id=15052-01 (in reply to end of DATA command)) Dec 29 10:44:49 jan1 postfix/smtp[15138]: EDF2E44138E: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=38215, delays=38214/0.02/0/1.9, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=08865-19 - Temporary MTA failure on relaying, From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 98) line 596, <GEN35> line 478.): id=08865-19 (in reply to end of DATA command)) Dec 29 10:44:49 jan1 postfix/smtp[15138]: EDF2E44138E: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=38215, delays=38214/0.02/0/1.9, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=08865-19 - Temporary MTA failure on relaying, From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 98) line 596, <GEN35> line 478.): id=08865-19 (in reply to end of DATA command)) Dec 29 10:45:01 jan1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured Dec 29 10:45:01 jan1 postfix/smtpd[15186]: connect from localhost[127.0.0.1] Dec 29 10:45:11 jan1 postfix/smtpd[15186]: fatal: no SASL authentication mechanisms Dec 29 10:45:12 jan1 postfix/master[1986]: warning: process /usr/lib/postfix/smtpd pid 15186 exit status 1 Dec 29 10:45:12 jan1 postfix/master[1986]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Dec 29 10:45:31 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15184, input bytes=0 Dec 29 10:45:48 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:45:48 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:46:18 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15184, input bytes=0 Dec 29 10:46:48 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15184, input bytes=0 Dec 29 10:46:48 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:46:48 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:47:23 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15184, input bytes=0 Dec 29 10:47:48 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:47:48 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:48:01 jan1 dovecot: pop3-login: Disconnected: Inactivity (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured Dec 29 10:48:48 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:48:48 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:50:02 jan1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured Dec 29 10:50:02 jan1 postfix/smtpd[15267]: connect from localhost[127.0.0.1] Dec 29 10:50:02 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:50:02 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:50:02 jan1 postfix/smtpd[15267]: fatal: no SASL authentication mechanisms Dec 29 10:50:03 jan1 postfix/master[1986]: warning: process /usr/lib/postfix/smtpd pid 15267 exit status 1 Dec 29 10:50:03 jan1 postfix/master[1986]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Dec 29 10:50:37 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15268, input bytes=0 Dec 29 10:51:02 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:51:02 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:51:32 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15268, input bytes=0 Dec 29 10:52:02 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15268, input bytes=0 Dec 29 10:52:02 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:52:02 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:52:37 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15268, input bytes=0 Dec 29 10:53:02 jan1 dovecot: pop3-login: Disconnected: Inactivity (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured Dec 29 10:53:02 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:53:02 jan1 dovecot: master: Error: service(auth): command startup failed, throttling **************************************************************** Mail-Error - Log (Server : jan1.kicks-ass.net) Data from: 2013-12-29 10:55 Dec 29 10:44:48 jan1 postfix/smtpd[15143]: fatal: no SASL authentication mechanisms Dec 29 10:44:48 jan1 postfix/smtpd[15145]: fatal: no SASL authentication mechanisms Dec 29 10:45:11 jan1 postfix/smtpd[15186]: fatal: no SASL authentication mechanisms Dec 29 10:45:31 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15184, input bytes=0 Dec 29 10:45:48 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:45:48 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:46:18 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15184, input bytes=0 Dec 29 10:46:48 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15184, input bytes=0 Dec 29 10:46:48 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:46:48 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:47:23 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15184, input bytes=0 Dec 29 10:47:48 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:47:48 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:48:48 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:48:48 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:50:02 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:50:02 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:50:02 jan1 postfix/smtpd[15267]: fatal: no SASL authentication mechanisms Dec 29 10:50:37 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15268, input bytes=0 Dec 29 10:51:02 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:51:02 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:51:32 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15268, input bytes=0 Dec 29 10:52:02 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15268, input bytes=0 Dec 29 10:52:02 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:52:02 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 29 10:52:37 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15268, input bytes=0 Dec 29 10:53:02 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 29 10:53:02 jan1 dovecot: master: Error: service(auth): command startup failed, throttling ***************************************************************************** postconf -n alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases append_dot_mydomain = no biff = no body_checks = regexp:/etc/postfix/body_checks broken_sasl_auth_clients = yes config_directory = /etc/postfix content_filter = amavis:[127.0.0.1]:10024 dovecot_destination_recipient_limit = 1 header_checks = regexp:/etc/postfix/header_checks html_directory = /usr/share/doc/postfix/html inet_interfaces = all inet_protocols = all mailbox_size_limit = 0 maildrop_destination_concurrency_limit = 1 maildrop_destination_recipient_limit = 1 message_size_limit = 0 mime_header_checks = regexp:/etc/postfix/mime_header_checks mydestination = jan1.kicks-ass.net, localhost, localhost.localdomain myhostname = jan1.kicks-ass.net mynetworks = 127.0.0.0/8 [::1]/128 myorigin = /etc/mailname nested_header_checks = regexp:/etc/postfix/nested_header_checks owner_request_special = no 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 $virtual_mailbox_limit_maps readme_directory = /usr/share/doc/postfix receive_override_options = no_address_mappings recipient_delimiter = + relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_client_message_rate_limit = 100 smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_key_file = /etc/postfix/smtpd.key smtpd_tls_security_level = may smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf virtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/virtual-mailman virtual_gid_maps = static:5000 virtual_mailbox_base = /var/vmail virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_transport = dovecot virtual_uid_maps = static:5000 ********************************************************************* /etc/postfix/master.cf # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # 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 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 milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd pickup fifo n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp relay unix - - - - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - - - - showq error unix - - - - - error retry unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender} # # ==================================================================== # # Recent Cyrus versions can use the existing "lmtp" master.cf entry. # # Specify in cyrus.conf: # lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4 # # Specify in main.cf one or more of the following: # mailbox_transport = lmtp:inet:localhost # virtual_transport = lmtp:inet:localhost # # ==================================================================== # # Cyrus 2.1.5 (Amos Gouaux) # Also specify in main.cf: cyrus_destination_recipient_limit=1 # #cyrus unix - n n - - pipe # user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} # # ==================================================================== # Old example of delivery via Cyrus. # #old-cyrus unix - n n - - pipe # flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user} # # ==================================================================== # # See the Postfix UUCP_README file for configuration details. # uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) # # Other external delivery methods. # ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} dovecot unix - n n - - pipe flags=DROhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} amavis unix - - - - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes 127.0.0.1:10025 inet n - - - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks (END) ******************************************************************
A bit of a longshot, but have you tried removing your hostname from Code: mydestination = jan1.kicks-ass.net, localhost, localhost.localdomain and keep just the localhost and localhost.localdomain entries?
Changed the line as suggested, # /etc/init.d/postfix restart Log entries seem to be the same. //millpark10
Added output from ISPConfig test script for common issues ##### SERVER ##### IP-address (as per hostname): 172.17.2.181 IP-address(es) (as per ifconfig): 172.17.2.181 [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.0.5.3 ##### VERSION CHECK ##### [INFO] php (cli) version is 5.3.10-1ubuntu3.9 ##### PORT CHECK ##### [WARN] Port 8080 (ISPConfig) seems NOT to be listening [WARN] Port 465 (SMTP server SSL) seems NOT to be listening ##### MAIL SERVER CHECK ##### [WARN] I found no "submission" entry in your postfix master.cf [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this. [WARN] I found no "smtps" entry in your postfix master.cf [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this. ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Apache 2 (PID 2087) [INFO] I found the following mail server(s): Postfix (PID 21140) [INFO] I found the following pop3 server(s): Dovecot (PID 833) [INFO] I found the following imap server(s): Dovecot (PID 833) [INFO] I found the following ftp server(s): PureFTP (PID 2013) ##### LISTENING PORTS ##### servrar) () Local (Address) 127.0.0.1:10024 (1390/amavisd) 127.0.0.1:10025 (21140/master) 0.0.0.0:3306 (855/mysqld) 0.0.0.0:110 (833/dovecot) 0.0.0.0:143 (833/dovecot) 0.0.0.0:80 (2087/apache2) 0.0.0.0:8081 (2087/apache2) 0.0.0.0:21 (2013/pure-ftpd) 172.17.2.181:53 (869/named) 127.0.0.1:53 (869/named) 0.0.0.0:22 (685/sshd) 0.0.0.0:25 (21140/master) 127.0.0.1:953 (869/named) 0.0.0.0:443 (2087/apache2) 0.0.0.0:18080 (2087/apache2) 0.0.0.0:993 (833/dovecot) 0.0.0.0:995 (833/dovecot) :::110 (833/dovecot) :::143 (833/dovecot) :::21 (2013/pure-ftpd) :::53 (869/named) :::22 (685/sshd) :::25 (21140/master) ::1:953 (869/named) :::993 (833/dovecot) :::995 (833/dovecot) ##### IPTABLES ##### Chain INPUT (policy ACCEPT) target prot opt source destination fail2ban-dovecot-pop3imap tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 110,995,143,993 fail2ban-pureftpd tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 21 fail2ban-ssh tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 22 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain fail2ban-dovecot-pop3imap (1 references) target prot opt source destination RETURN all -- 0.0.0.0/0 0.0.0.0/0 Chain fail2ban-pureftpd (1 references) target prot opt source destination RETURN all -- 0.0.0.0/0 0.0.0.0/0 Chain fail2ban-ssh (1 references) target prot opt source destination RETURN all -- 0.0.0.0/0 0.0.0.0/0
Code: ##### PORT CHECK ##### [WARN] Port 8080 (ISPConfig) seems NOT to be listening [WARN] Port 465 (SMTP server SSL) seems NOT to be listening That's strange. I guess you cannot access the ISPConfig webpage? Or are you running it on a different port? Apache is already running... What's the output of Code: netstat -tap -l --numeric-ports do you have the ispconfig.conf and ispconfig.vhost files in /etc/apache2/sites-available/ ? Do you then see them in /etc/apache2/sites-enabled/ ? (they'll probably have a "000-" in front).
Running web interface on other port and can access it via https://ip-to-myserver on my LAN. Reading the mail logs via the monitor page. I Started to follow "The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3)" and then continued and finished with "Installing A Web, Email & MySQL Database Cluster On Debian 6.0 With ISPConfig 3" When checking installed packages I can't find dovecot-mysql on my servers. In the Ubuntu perfect server it later says: "apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve sudo" In the "Installing A Web, Email & MySQL Database Cluster On Debian 6.0 With ISPConfig 3" it says: "apt-get -y install postfix postfix-mysql postfix-doc mysql-client mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d sudo" "dovecot-mysql dovecot-sieve" Is not included in Can this be the problem? Will I break (or eventually fix) anything by doing: # apt-get -y install dovecot-mysql dovecot-sieve Or is there a better solution? As this is going to be a production server I don't want to deviate to much from the "perfect setups". //millpark10 Output from what you asked for: # ls -las /etc/apache2/sites-available/ totalt 32 4 drwxr-xr-x 2 root root 4096 dec 19 23:50 . 4 drwxr-xr-x 7 root root 4096 dec 18 13:15 .. 4 -rw-r--r-- 1 root root 1022 dec 21 00:19 apps.vhost 4 -rw-r--r-- 1 root root 950 feb 7 2012 default 8 -rw-r--r-- 1 root root 7469 feb 7 2012 default-ssl 4 -rw-r--r-- 1 root root 1364 dec 19 23:32 ispconfig.conf 4 -rw-r--r-- 1 root root 2012 dec 19 23:50 ispconfig.vhost # ls -las /etc/apache2/sites-enabled/ totalt 8 4 drwxr-xr-x 2 root root 4096 dec 19 23:50 . 4 drwxr-xr-x 7 root root 4096 dec 18 13:15 .. 0 lrwxrwxrwx 1 root root 39 dec 19 23:32 000-apps.vhost -> /etc/apache2/sites-available/apps.vhost 0 lrwxrwxrwx 1 root root 26 dec 18 13:15 000-default -> ../sites-available/default 0 lrwxrwxrwx 1 root root 43 dec 19 23:32 000-ispconfig.conf -> /etc/apache2/sites-available/ispconfig.conf 0 lrwxrwxrwx 1 root root 44 dec 19 23:50 000-ispconfig.vhost -> /etc/apache2/sites-available/ispconfig.vhost # netstat -tap -l --numeric-ports Aktiva internetanslutningar (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 943/amavisd (ch2-av tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 21140/master tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 855/mysqld tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 833/dovecot tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 833/dovecot tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2087/apache2 tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 2087/apache2 tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2013/pure-ftpd (SER tcp 0 0 172.17.2.181:53 0.0.0.0:* LISTEN 869/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 869/named tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 685/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 21140/master tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 869/named tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 2087/apache2 tcp 0 0 0.0.0.0:18080 0.0.0.0:* LISTEN 2087/apache2 tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 833/dovecot tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 833/dovecot tcp 0 0 127.0.0.1:41465 127.0.0.1:3306 ETABLERAD 943/amavisd (ch2-av tcp 0 0 172.17.2.181:3306 172.17.2.182:37713 ETABLERAD 855/mysqld tcp 0 0 172.17.2.181:22 172.17.2.114:47813 ETABLERAD 30222/sshd: ettan1 tcp 0 0 127.0.0.1:3306 127.0.0.1:41317 ETABLERAD 855/mysqld tcp 1 0 127.0.0.1:110 127.0.0.1:59983 CLOSE_WAIT 1885/pop3-login tcp 0 0 172.17.2.181:51510 172.17.2.182:3306 ETABLERAD 855/mysqld tcp 0 0 127.0.0.1:3306 127.0.0.1:41465 ETABLERAD 855/mysqld tcp 0 0 127.0.0.1:41317 127.0.0.1:3306 ETABLERAD 11470/amavisd (ch8- tcp6 0 0 :::110 :::* LISTEN 833/dovecot tcp6 0 0 :::143 :::* LISTEN 833/dovecot tcp6 0 0 :::21 :::* LISTEN 2013/pure-ftpd (SER tcp6 0 0 :::53 :::* LISTEN 869/named tcp6 0 0 :::22 :::* LISTEN 685/sshd tcp6 0 0 :::25 :::* LISTEN 21140/master tcp6 0 0 ::1:953 :::* LISTEN 869/named tcp6 0 0 :::993 :::* LISTEN 833/dovecot tcp6 0 0 :::995 :::* LISTEN 833/dovecot //millpark10
No problem. I have very little experience and a linux newbie but many others are helping me on here so I might as well chip in where I can OK, so you're running the ispconfig on https port 443 so we can ignore the error regarding it not listening on port 8080. Your apache hosts look OK so it could just be a dovecot thing. I noticed that whilst dovecot is running on 143 (IMAPS) and 993 (SSL/TLS) for receiving, it's not running on 465 or 587 for SMTP outgoing. I followed the same guide (have my server running pretty much how I like it with Ubuntu 12.04LTS) Here's my output: Code: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 8019/dovecot tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 8019/dovecot [COLOR="Red"]tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 7593/master[/COLOR] tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 15167/pure-ftpd (SE tcp 0 0 80.1.2.3:53 0.0.0.0:* LISTEN 4907/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4907/named tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2503/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 7593/master tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 4907/named tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 8019/dovecot tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 8019/dovecot tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 3053/php-fpm.conf) tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 7593/master tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2594/mysqld [COLOR="red"]tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 7593/master[/COLOR] tcp 0 272 80.1.2.3:22 82.3.214.92:49896 ESTABLISHED 17600/sshd: xav And I have ports 465 and 587 open for listening which is the default for sending email over SSL/TLS and STARTTLS respectively. Can you check in /etc/postfix/master.cf and confirm you have uncommented the correct lines: Code: [COLOR="Blue"]# # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # 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) # ==========================================================================[/COLOR] [COLOR="Red"]smtp inet n - - - - smtpd[/COLOR] [COLOR="Blue"]#smtp inet n - - - 1 postscreen #smtpd pass - - - - - smtpd #dnsblog unix - - - - 0 dnsblog #tlsproxy unix - - - - 0 tlsproxy[/COLOR] [COLOR="Red"]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[/COLOR] [COLOR="blue"]# -o milter_macro_daemon_name=ORIGINATING[/COLOR] [COLOR="Red"]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[/COLOR] [COLOR="blue"]# -o milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd[/COLOR] It's easy to miss uncommenting the submission and smtps lines (they are commented out by default). I've highlighted in red the ones you need If they are commented out, uncomment them then restart postfix and dovecot services and keep us posted edit: I forgot you posted your master.cf file in your original posts and the lines weren't commented out - I bet that's it!
tfboy, thank you for trying, I just cant identify where to go from here. Changed # vim /etc/postfix/master.cf Restarted server at 11:10 # /etc/init.d/postfix restart edit: is this change to be done on both master and slave server? (stupid question?) Can not se any change at all in logs. Did wait (often stated in posts that changes take some time) before copying from monitor pages, copied again after 25 min. This problem might have occured by me changing guide (two perfect setups) at a point where some instructions and/or packages have not been installed, or the opposite, was erratically installed. tfboy's post above is mentioned in the 12.04 perfetct guide but is not mentioned in the "installing-a-web-email-and-mysql-database-cluster-on-debian-6.0-with-ispconfig-3". Any comment on the fact that "dovecot-mysql dovecot-sieve" Is not included in the later guide but is stated in the 12.04 guide? Is this Ubuntu specific and not needed with debian? Can this be the problem? Will I break (or eventually fix) anything by doing: # apt-get -y install dovecot-mysql dovecot-sieve Do I really have to start over from scratch and do a complete reinstall? //millpark10 Mail-Error - Log Dec 31 11:08:02 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:10:01 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:10:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:10:01 jan1 postfix/smtpd[13861]: fatal: no SASL authentication mechanisms Dec 31 11:10:36 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=13862, input bytes=0 Dec 31 11:11:01 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:11:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:11:31 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=13862, input bytes=0 Dec 31 11:11:35 jan1 postfix/smtpd[14033]: fatal: no SASL authentication mechanisms Dec 31 11:12:01 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=13862, input bytes=0 Dec 31 11:12:01 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:12:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:12:36 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=13862, input bytes=0 Dec 31 11:13:01 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:13:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling -- Dec 31 11:41:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:41:31 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=14559, input bytes=0 Dec 31 11:41:34 jan1 postfix/smtpd[14595]: fatal: no SASL authentication mechanisms Dec 31 11:41:34 jan1 postfix/smtpd[14596]: fatal: no SASL authentication mechanisms Dec 31 11:42:01 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=14559, input bytes=0 Dec 31 11:42:01 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:42:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:42:36 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=14559, input bytes=0 Dec 31 11:43:01 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:43:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Mail - Log Dec 31 11:11:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:11:24 jan1 postfix/master[21140]: terminating on signal 15 Dec 31 11:11:24 jan1 postfix/master[14024]: daemon started -- version 2.9.6, configuration /etc/postfix Dec 31 11:11:24 jan1 postfix/qmgr[14028]: 3F99544135A: from=<[email protected]>, size=3344, nrcpt=1 (queue active) Dec 31 11:11:25 jan1 postfix/smtpd[14033]: connect from localhost[127.0.0.1] Dec 31 11:11:31 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=13862, input bytes=0 Dec 31 11:11:35 jan1 postfix/smtpd[14033]: fatal: no SASL authentication mechanisms Dec 31 11:11:36 jan1 postfix/master[14024]: warning: process /usr/lib/postfix/smtpd pid 14033 exit status 1 Dec 31 11:11:36 jan1 postfix/master[14024]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Dec 31 11:11:36 jan1 amavis[13505]: (13505-01) (!)FWD via SMTP: <[email protected]> -> <[email protected]>, 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 98) line 596, <GEN35> line 83.): id=13505-01 Dec 31 11:11:36 jan1 amavis[13505]: (13505-01) Blocked MTA-BLOCKED, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: 7sp31xH7-CRp, Hits: -0.001, size: 3341, 12122 ms Dec 31 11:11:36 jan1 postfix/smtp[14029]: 3F99544135A: to=<[email protected]>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=243868, delays=243856/0.01/0.01/12, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=13505-01 - Temporary MTA failure on relaying, From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 98) line 596, <GEN35> line 83.): id=13505-01 (in reply to end of DATA command)) Dec 31 11:12:01 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=13862, input bytes=0 Dec 31 11:12:01 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:12:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:12:36 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=13862, input bytes=0 Dec 31 11:13:01 jan1 dovecot: pop3-login: Disconnected: Inactivity (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured Dec 31 11:13:01 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:13:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling -- Dec 31 11:37:39 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=14453, input bytes=0 Dec 31 11:38:01 jan1 dovecot: pop3-login: Disconnected: Inactivity (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured Dec 31 11:38:03 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:38:03 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:40:01 jan1 postfix/smtpd[14558]: connect from localhost[127.0.0.1] Dec 31 11:40:01 jan1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured Dec 31 11:40:01 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:40:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:40:01 jan1 postfix/smtpd[14558]: fatal: no SASL authentication mechanisms Dec 31 11:40:02 jan1 postfix/master[14024]: warning: process /usr/lib/postfix/smtpd pid 14558 exit status 1 Dec 31 11:40:02 jan1 postfix/master[14024]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Dec 31 11:40:36 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=14559, input bytes=0 Dec 31 11:41:01 jan1 dovecot: auth: Fatal: Unknown database driver 'mysql' Dec 31 11:41:01 jan1 dovecot: master: Error: service(auth): command startup failed, throttling Dec 31 11:41:24 jan1 postfix/qmgr[14028]: 54C79441389: from=<[email protected]>, size=365, nrcpt=1 (queue active) Dec 31 11:41:24 jan1 postfix/qmgr[14028]: EDF2E44138E: from=<[email protected]>, size=377, nrcpt=2 (queue active) Dec 31 11:41:24 jan1 postfix/smtpd[14595]: connect from localhost[127.0.0.1] Dec 31 11:41:24 jan1 postfix/smtpd[14596]: connect from localhost[127.0.0.1] Dec 31 11:41:31 jan1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=14559, input bytes=0 Dec 31 11:41:34 jan1 postfix/smtpd[14595]: fatal: no SASL authentication mechanisms Dec 31 11:41:34 jan1 postfix/smtpd[14596]: fatal: no SASL authentication mechanisms Dec 31 11:41:35 jan1 postfix/master[14024]: warning: process /usr/lib/postfix/smtpd pid 14595 exit status 1 Dec 31 11:41:35 jan1 postfix/master[14024]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Dec 31 11:41:35 jan1 amavis[13505]: (13505-04) (!)FWD via SMTP: <[email protected]> -> <[email protected]>, 451 4.5.0 From MTA([127.0.0.1]:10025) during fwd-connect (Negative greeting: at (eval 98) line 596, <GEN35> line 145.): id=13505-04
I tried to make my way through your posts... Did I get it right, that you have a debian squeeze (6.0) or even wheezy (7.0) server but used the ubuntu guide?? Why didn't you use the debian perfect server guide? When I install a debian perfect server I use these packages Code: apt-get install cron debian-keyring host ftp ssh openssh-server vim vim-nox ntp ntpdate postfix postfix-cdb postfix-mysql postfix-doc mysql-client mysql-server libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl getmail4 rkhunter binutils sudo amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap php5-curl php5-xmlrpc phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libruby libapache2-mod-ruby pure-ftpd-common pure-ftpd-mysql quota quotatool dovecot-mysql dovecot-imapd dovecot-pop3d sudo geoip-database libapache2-mod-perl2 These are not all needed and you might need some others, too - but I never had any problems that dovecot-mysql etc. are not found. Maybe your installation is quite messed up...
Hi Croydon No I have Ubuntu 12.04LTS as basic OS. I Started to follow "The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3)" from start up to and including page 42, pargraph "11 synchronize the system Clock" Then continued and finished with "Installing A Web, Email & MySQL Database Cluster On Debian 6.0 With ISPConfig 3" From page 7 "Now we prepare the MySQLserver for mysql master/master replication" Due to changes in version I had to uninstall and reinstall MySQL to get the replication to work. //millpark10
[solved] Ok, solved, I think. Did # apt-get -y install dovecot-mysql dovecot-sieve # /etc/init.d/postfix restart on both servers and slowly the Mail queue went to "Mail queue is empty". It took almost 60 min to send 8 cli generated mails. That seems a long time though. Happy new year! //millpark10