View Single Post
  #1  
Old 26th December 2010, 04:28
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default SMTP error Dovecot postfix

Hello,

I am having problem connecting remotely to SMTP server with outlook or Claws mail. The feature works before. I am able to send email with roundcube.. There are not error in the mail log files but outlook reporting authentication serror.

this is a virtual server with OpenSuse postfix dovecot mysql amavis.

mail:~ # telnet localhost smtp
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 mail.xxxxxxxxxx.net ESMTP Postfix (2.6.1)
ehlo localhost
250-mail.xxxxxxxxx.net
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-STARTTLS
250-AUTH DIGEST-MD5 GSSAPI CRAM-MD5 PLAIN LOGIN
250-AUTH=DIGEST-MD5 GSSAPI CRAM-MD5 PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN



netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:12 *:* LISTEN 1837/sshd
tcp 0 0 *op3 *:* LISTEN 8841/dovecot
tcp 0 0 localhost:dyna-access *:* LISTEN 2415/clamd
tcp 0 0 *:imap *:* LISTEN 8841/dovecot
tcp 0 0 *:sunrpc *:* LISTEN 2585/rpcbind
tcp 0 0 *:ndmp *:* LISTEN 2614/perl
tcp 0 0 *:munin *:* LISTEN 1996/munin-node
tcp 0 0 mail.xxxxxxx.net:smtp *:* LISTEN 12612/master
tcp 0 0 localhost:smtp *:* LISTEN 12612/master
tcp 0 0 *:imaps *:* LISTEN 8841/dovecot
tcp 0 0 *op3s *:* LISTEN 8841/dovecot
tcp 0 0 localhost:10024 *:* LISTEN 2516/amavisd (maste
tcp 0 0 localhost:10025 *:* LISTEN 12612/master
tcp 0 0 *:mysql *:* LISTEN 1989/mysqld
tcp 0 0 xxxxxxxx.net:imaps adsl190-25106068.:27472 ESTABLISHED 13187/imap-login
tcp 0 384 xxxxxxxx.net:12 adsl190-25106068.:26350 ESTABLISHED 8296/0
tcp 0 0 xxxxxxxx.net:imaps adsl190-25106068.:27565 ESTABLISHED 13383/imap-login
tcp 0 0 xxxxxxxx.net:mysql wsip-xxx-xx-xxx-1:40779 ESTABLISHED 1989/mysqld
tcp 0 0 *:12 *:* LISTEN 1837/sshd
tcp 0 0 *:sunrpc *:* LISTEN 2585/rpcbind
tcp 0 0 *:www-http *:* LISTEN 2444/httpd2-prefork
tcp 0 0 localhost:smtp *:* LISTEN 12612/master
tcp 0 0 *:https *:* LISTEN 2444/httpd2-prefork

postfix cong
# --------------- local settings ------------------
myhostname = mail.xxxxxxxxx.net
mydomain = xxxxxxxxxx.net
inet_interfaces = localhost, $myhostname
alias_maps =
alias_database =
relay_domains = mysql:$config_directory/mysql_relay_domains_maps.cf
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
debug_peer_level = 2
debugger_command =
PATH =/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mailq_path = /usr/bin/mailq
setgid_group = maildrop
mynetworks_style = subnet
mynetworks = 127.0.0.0/8, 192.168.1.0/28
mydestination = localhost, $myhostname
unknown_local_recipient_reject_code = 550
address_verify_map = btree:/var/spool/postfix/address_verify
inet_protocols = all
biff = no
content_filter = smtp-amavis:[127.0.0.1]:10024
# ---------------------- VIRTUAL DOMAINS START ----------------------
virtual_mailbox_domains = mysql:$config_directory/mysql_virtual_domains_maps.cf
virtual_mailbox_base = /var/vmail
virtual_mailbox_maps = mysql:$config_directory/mysql_virtual_mailbox_maps.cf
virtual_alias_maps = mysql:$config_directory/mysql_virtual_alias_maps.cf
virtual_minimum_uid = 150
virtual_uid_maps = static:150
virtual_gid_maps = static:8
virtual_transport = virtual
dovecot_destination_recipient_limit = 1
# ---------------------- VIRTUAL DOMAINS END ----------------------
# ---------------------- ADDITIONAL FOR QUOTA SUPPORT -------------
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes
# ---------------------- ADDITIONAL FOR QUOTA SUPPORT END -----
# ---------------------- SASL PART START ----------------------
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
#smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
#smtp_sasl_password_maps = mysql:$config_directory/mysql_virtual_mailbox_maps.cf
smtpd_sasl_path = private/auth
# ---------------------- SASL PART END ----------------------
# ---------------------- TLS PART START ----------------------
smtp_use_tls = yes
smtp_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtp_tls_key_file = /etc/postfix/ssl/smtpd.key
smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtp_tls_session_cache_database = btree:/var/spool/postfix/smtp_tls_session_cache
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_session_cache_database = btree:/var/spool/postfix/smtpd_tls_session_cache
smtpd_use_tls = yes
smtpd_tls_security_level = may
smtpd_tls_received_header = no
smtpd_tls_ask_ccert = no
smtpd_tls_loglevel = 0
tls_random_source = dev:/dev/urandom
smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_session_cache_timeout = 3600s
# ---------------------- TLS PART END ----------------------
smtpd_helo_required = yes
disable_vrfy_command = yes
non_fqdn_reject_code = 450
invalid_hostname_reject_code = 450
maps_rbl_reject_code = 450
smtpd_recipient_restrictions =
permit_mynetworks
permit_tls_all_clientcerts
permit_sasl_authenticated
reject_unauth_destination
reject_invalid_helo_hostname
reject_non_fqdn_sender
reject_non_fqdn_recipient
reject_unknown_sender_domain
warn_if_reject reject_unverified_sender
reject_unknown_recipient_domain
reject_unverified_recipient
reject_unauth_pipelining
reject_rbl_client multi.uribl.com
reject_rbl_client dul.dnsbl.sorbs.net
reject_rbl_client sbl-xbl.spamhaus.org
reject_rbl_client dnsbl.sorbs.net
reject_rbl_client ix.dnsbl.manitu.net
reject_rbl_client combined.rbl.msrbl.net
reject_rbl_client rabl.nuclearelephant.com
reject_rbl_client cbl.abuseat.org
reject_rbl_client sbl.spamhaus.org
reject_rbl_client bl.spamcop.net
reject_rbl_client dnsbl.sorbs.net=127.0.0.2
reject_rbl_client dnsbl.sorbs.net=127.0.0.3
reject_rbl_client dnsbl.sorbs.net=127.0.0.4
reject_rbl_client dnsbl.sorbs.net=127.0.0.5
reject_rbl_client dnsbl.sorbs.net=127.0.0.7
reject_rbl_client dnsbl.sorbs.net=127.0.0.9
reject_rbl_client dnsbl.sorbs.net=127.0.0.11
reject_rbl_client dnsbl.sorbs.net=127.0.0.12
warn_if_reject reject_non_fqdn_helo_hostname
warn_if_reject reject_unknown_helo_hostname
warn_if_reject reject_unknown_client
warn_if_reject reject_rhsbl_sender dsn.rfc-ignorant.org
warn_if_reject reject_rhsbl_sender abuse.rfc-ignorant.org
warn_if_reject reject_rhsbl_sender whois.rfc-ignorant.org
warn_if_reject reject_rhsbl_sender bogusmx.rfc-ignorant.org
warn_if_reject reject_rhsbl_sender postmaster.rfc-ignorant.org
permit
smtpd_data_restrictions =
reject_unauth_pipelining,
reject_multi_recipient_bounce,
permit
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man


Claws log reads as follow.

* Connecting to SMTP server: mail.xxxxxxxxxxxxxx.com ...
*** Error occurred while sending the message.
[21:34:50] IMAP4> 24 SELECT INBOX
[21:34:50] IMAP4< * OK [CLOSED] Previous mailbox closed.
[21:34:50] IMAP4< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $MDNSent $Forwarded)
[21:34:50] IMAP4< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $MDNSent $Forwarded \*)] Flags permitted.
[21:34:50] IMAP4< * 10 EXISTS
[21:34:50] IMAP4< * 0 RECENT
[21:34:50] IMAP4< * OK [UIDVALIDITY 1289161117] UIDs valid
[21:34:50] IMAP4< * OK [UIDNEXT 14] Predicted next UID
[21:34:50] IMAP4< * OK [HIGHESTMODSEQ 1] Highest
[21:34:50] IMAP4< 24 OK [READ-WRITE] Select completed.
[21:34:50] IMAP4> 25 UID STORE 12 -FLAGS.SILENT (\Answered)
[21:34:50] IMAP4< 25 OK Store completed.
[21:34:50] IMAP4> 26 SELECT Queue
[21:34:51] IMAP4< * OK [CLOSED] Previous mailbox closed.
[21:34:51] IMAP4< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
[21:34:51] IMAP4< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
[21:34:51] IMAP4< * 1 EXISTS
[21:34:51] IMAP4< * 0 RECENT
[21:34:51] IMAP4< * OK [UIDVALIDITY 1289161122] UIDs valid
[21:34:51] IMAP4< * OK [UIDNEXT 14] Predicted next UID
[21:34:51] IMAP4< * OK [HIGHESTMODSEQ 1] Highest
[21:34:51] IMAP4< 26 OK [READ-WRITE] Select completed.
[21:34:51] IMAP4> 27 UID STORE 13 +FLAGS.SILENT (\Deleted)
[21:34:51] IMAP4< 27 OK Store completed.
[21:34:51] IMAP4> 28 EXPUNGE
[21:34:51] IMAP4< * 1 EXPUNGE
[21:34:51] IMAP4< 28 OK Expunge completed.
[21:34:51] IMAP4- [fetching UIDs...]
[21:34:51] IMAP4> 29 UID FETCH 1:* (UID)
[21:34:51] IMAP4< 29 OK Fetch completed.



Kind regards,

AL

Last edited by aberrio; 26th December 2010 at 04:38.
Reply With Quote
Sponsored Links