SMTP error Dovecot postfix

Discussion in 'Server Operation' started by aberrio, Dec 26, 2010.

  1. aberrio

    aberrio New Member

    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 *:pop3 *:* 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 *:pop3s *:* 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: Dec 26, 2010
  2. aberrio

    aberrio New Member

    Hello,

    Any update on this issue?


    Kind regards,

    Al
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Please make sure that your firewall allows access to POP3 and IMAP.
     
  4. aberrio

    aberrio New Member

    Hi,

    Both ports are open.

    tcp 0 0 *:pop3 *:* LISTEN 8841/dovecot
    tcp 0 0 localhost:dyna-access *:* LISTEN 2415/clamd
    tcp 0 0 *:imap *:* LISTEN 8841/dovecot


    mail:~ # netstat -antuwp | egrep "(^[^t])|(^tcp.*LISTEN)"
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:12 0.0.0.0:* LISTEN 1837/sshd
    tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 7418/pop3-login
    tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 2415/clamd
    tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 6049/imap-login
    tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2585/rpcbind
    tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2614/perl
    tcp 0 0 0.0.0.0:4949 0.0.0.0:* LISTEN 1996/munin-node
    tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1480/master
    tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 6049/imap-login
    tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 7418/pop3-login
    tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 2516/amavisd (maste
    tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 1480/master
    tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1989/mysqld
    tcp 0 0 :::12 :::* LISTEN 1837/sshd
    tcp 0 0 :::111 :::* LISTEN 2585/rpcbind
    tcp 0 0 :::80 :::* LISTEN 2444/httpd2-prefork
    tcp 0 0 :::25 :::* LISTEN 1480/master
    tcp 0 0 :::443 :::* LISTEN 2444/httpd2-prefork
    udp 0 0 0.0.0.0:111 0.0.0.0:* 2585/rpcbind
    udp 0 0 0.0.0.0:626 0.0.0.0:* 2585/rpcbind
    udp 0 0 174.78.185.175:123 0.0.0.0:* 2542/ntpd
    udp 0 0 127.0.0.2:123 0.0.0.0:* 2542/ntpd
    udp 0 0 127.0.0.1:123 0.0.0.0:* 2542/ntpd
    udp 0 0 0.0.0.0:123 0.0.0.0:* 2542/ntpd
    udp 0 0 0.0.0.0:10000 0.0.0.0:* 2614/perl
    udp 0 0 :::111 :::* 2585/rpcbind
    udp 0 0 :::626 :::* 2585/rpcbind
    udp 0 0 fe80::211:9ff:fe82::123 :::* 2542/ntpd
    udp 0 0 ::1:123 :::* 2542/ntpd
    udp 0 0 :::123 :::* 2542/ntpd


    aberrio@Portatil:~> telnet mail.wwwwwww.net smtp
    Trying xxx.xxx.xxx.xxx...
    Connected to mail.wwwww.net.
    Escape character is '^]'.
    220 mail.wwwww.net ESMTP Postfix (2.6.1)
    quit

    aberrio@Portatil:~> telnet mail.wwwww.net pop3
    Trying xxx.xxx.xxx.xxx...
    Connected to mail.wwwww.net.
    Escape character is '^]'.
    +OK Dovecot ready.
    quit
    +OK Logging out

    aberrio@Portatil:~> telnet mail.wwwwwww.net 143
    Trying xxx.xxx.xxx.xxx...
    Connected to mail.tchosting.net.
    Escape character is '^]'.
    * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS LOGINDISABLED AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready.
    .
    .



    Any other suggestion?

    Kind regards,

    AL
     
    Last edited: Jan 2, 2011
  5. falko

    falko Super Moderator ISPConfig Developer

    What does
    Code:
    iptables -L
    show?
     
  6. aberrio

    aberrio New Member

    Hello,

    Here it is.

    mail:~ # iptables -L
    Chain INPUT (policy DROP)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere
    ACCEPT all -- anywhere anywhere state ESTABLISHED
    ACCEPT icmp -- anywhere anywhere state RELATED
    input_ext all -- anywhere anywhere
    input_ext all -- anywhere anywhere
    LOG all -- anywhere anywhere limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-IN-ILL-TARGET '
    DROP all -- anywhere anywhere

    Chain FORWARD (policy DROP)
    target prot opt source destination
    LOG all -- anywhere anywhere limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-FWD-ILL-ROUTING '

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere
    ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
    LOG all -- anywhere anywhere limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-OUT-ERROR '

    Chain forward_ext (0 references)
    target prot opt source destination

    Chain input_ext (2 references)
    target prot opt source destination
    DROP all -- anywhere anywhere PKTTYPE = broadcast
    ACCEPT icmp -- anywhere anywhere icmp source-quench
    ACCEPT icmp -- anywhere anywhere icmp echo-request
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:ndmp flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:ndmp
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:12 flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:12
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:munin flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:munin
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:imap flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:imap
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:imaps flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:imaps
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt: pop3 flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt;pop3
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt: pop3s flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt: pop3s
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:smtp flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:http flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:http
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:https flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:https
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:imaps flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:imaps
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:imap flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:imap
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt: pop3 flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt; pop3
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt: pop3s flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt: pop3s
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:mysql flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:mysql
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:smtp flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:urd flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP '
    ACCEPT tcp -- anywhere anywhere tcp dpt:urd
    ACCEPT udp -- anywhere anywhere udp dpt:munin
    ACCEPT udp -- anywhere anywhere udp dpt:http
    ACCEPT udp -- anywhere anywhere udp dpt:https
    ACCEPT udp -- anywhere anywhere udp dpt:imaps
    ACCEPT udp -- anywhere anywhere udp dpt:imap
    ACCEPT udp -- anywhere anywhere udp dpt: pop3
    ACCEPT udp -- anywhere anywhere udp dpt: pop3s
    DROP all -- anywhere anywhere PKTTYPE = multicast
    DROP all -- anywhere anywhere PKTTYPE = broadcast
    LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
    LOG icmp -- anywhere anywhere limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
    LOG udp -- anywhere anywhere limit: avg 3/min burst 5 state NEW LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '
    DROP all -- anywhere anywhere

    Chain reject_func (0 references)
    target prot opt source destination
    REJECT tcp -- anywhere anywhere reject-with tcp-reset
    REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable
    REJECT all -- anywhere anywhere reject-with icmp-proto-unreachable
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Can you stop your firewall for testing purposes to see if it works then?
     
  8. aberrio

    aberrio New Member

    Hello,

    No good. No log found.

    Kind regards,

    AL
     
  9. falko

    falko Super Moderator ISPConfig Developer

    What are the outputs of
    Code:
    iptables -L
    and
    Code:
    netstat -tap
    now? Are there any errors in your mail log now?
     
  10. aberrio

    aberrio New Member

    hello,


    Here it is.


    mail:~ # 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 *:pop3 *:* LISTEN 527/pop3-login
    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 *:smtp *:* LISTEN 1480/master
    tcp 0 0 *:imaps *:* LISTEN 8841/dovecot
    tcp 0 0 *:pop3s *:* LISTEN 527/pop3-login
    tcp 0 0 localhost:10024 *:* LISTEN 2516/amavisd (maste
    tcp 0 0 localhost:10025 *:* LISTEN 1480/master
    tcp 0 0 *:mysql *:* LISTEN 1989/mysqld
    tcp 0 0 tchosting.net:mysql wsip-174-78-185-1:56530 ESTABLISHED 1989/mysqld
    tcp 55 0 localhost:52129 localhost:10025 CLOSE_WAIT 6903/amavisd (ch1-a
    tcp 55 0 localhost:50632 localhost:10025 CLOSE_WAIT 6902/amavisd (ch1-a
    tcp 0 688 tchosting.net:12 adsl190-25107143.:11356 ESTABLISHED 11799/0
    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 *:smtp *:* LISTEN 1480/master
    tcp 0 0 *:https *:* LISTEN 2444/httpd2-prefork

    Also I am able to connect to smtp port remotely. Here is the telnet from outside.

    aberrio@Portatil:~> telnet mail.xxxxxxxxx.net smtp
    Trying 174.78.185.175...
    Connected to mail.xxxxxxxxx.net.
    Escape character is '^]'.
    220 mail.xxxxxxxxx.net ESMTP Postfix (2.6.1)
    ehlo mail.xxxxxxxxx.net
    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
    MAIL FROM:admin@ xxxxxxxxx.net
    250 2.1.0 Ok
    RCPT TO:aberrio@xsxsxsxsxs.com
    250 2.1.5 Ok
    DATA
    354 End data with <CR><LF>.<CR><LF>
    Subject:test message
    g messages.


    This is a test message you will not see a response from this command.
    .
    250 2.0.0 Ok: queued as 61AEA3F80D3
    quit
    221 2.0.0 Bye
    Connection closed by foreign host.
    aberrio@Portatil:~>




    Getting the following messages.


    Jan 7 07:20:21 mail postfix/smtpd[13631]: NOQUEUE: reject_warning: RCPT from unknown[190.25.107.143]: 450 4.7.1 Client host rejected: cannot find your hostname, [190.25.107.143]; from=<admin@xxxxxxxxx.net> to=<aberrio@xsxsxsxsxsx.com> proto=ESMTP helo=<mail.tchosting.net>
    Jan 7 07:20:21 mail postfix/smtpd[13631]: 61AEA3F80D3: client=unknown[190.25.107.143]
    Jan 7 07:21:47 mail clamd[2415]: SelfCheck: Database status OK.
    Jan 7 07:21:59 mail postfix/cleanup[13899]: 61AEA3F80D3: message-id=<>
    Jan 7 07:21:59 mail postfix/qmgr[1482]: 61AEA3F80D3: from=<admin@xxxxxxxxx.net>, size=293, nrcpt=1 (queue active)
    Jan 7 07:22:04 mail postfix/smtpd[13952]: connect from localhost[127.0.0.1]
    Jan 7 07:22:04 mail postfix/smtpd[13952]: D81473F80D6: client=localhost[127.0.0.1]
    Jan 7 07:22:04 mail postfix/cleanup[13899]: D81473F80D6: message-id=<SSjyOONozCMx8n@mail.xxxxxxxxx.net>
    Jan 7 07:22:05 mail postfix/qmgr[1482]: D81473F80D6: from=<>, size=3049, nrcpt=1 (queue active)
    Jan 7 07:22:05 mail postfix/smtpd[13952]: disconnect from localhost[127.0.0.1]
    Jan 7 07:22:05 mail postfix/smtp[13949]: 61AEA3F80D3: to=<aberrio@xsxsxsxsxs.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=150, delays=145/0.02/0.03/5.2, dsn=2.5.0, status=sent (250 2.5.0 Ok, id=06903-02, BOUNCE)
    Jan 7 07:22:05 mail postfix/qmgr[1482]: 61AEA3F80D3: removed
    Jan 7 07:22:05 mail postfix/virtual[13958]: D81473F80D6: to=<admin@xxxxxxxxx.net>, relay=virtual, delay=0.29, delays=0.16/0.01/0/0.11, dsn=2.0.0, status=sent (delivered to maildir)
    Jan 7 07:22:05 mail postfix/qmgr[1482]: D81473F80D6: removed
    Jan 7 07:22:14 mail postfix/smtpd[13631]: disconnect from unknown[190.25.107.143]
    Jan 7 07:22:31 mail postfix/anvil[13633]: statistics: max connection rate 2/60s for (smtp:190.25.107.143) at Jan 7 07:16:47
    Jan 7 07:22:31 mail postfix/anvil[13633]: statistics: max connection count 1 for (smtp:190.25.107.143) at Jan 7 07:16:29
    Jan 7 07:22:31 mail postfix/anvil[13633]: statistics: max cache size 1 at Jan 7 07:18:27
    But the message did not arrive.

    Kind regards,

    Al
     
  11. falko

    falko Super Moderator ISPConfig Developer

    Code:
    tcp 0 0 *:pop3 *:* LISTEN 527/pop3-login
    tcp 0 0 localhost:dyna-access *:* LISTEN 2415/clamd
    tcp 0 0 *:imap *:* LISTEN 8841/dovecot 
    I wonder why it reads pop3-login for pop3 and Dovecot for imap... Maybe Dovecot isn't listening on POP3, maybe it's a different daemon? Can you access your mails if you use IMAP?
     
  12. aberrio

    aberrio New Member

    Hello,

    I decided to use IMAP instead POP3 but, I never removed the POP3 option. I am able to access emails via Dovecot with Claws Mail in Linux , Outlook in windows and RoundCube online: with RoundCube I am able to send email.

    Kind regards,

    Al
     
  13. falko

    falko Super Moderator ISPConfig Developer

    Can you kill the pop3-login processes and restart Dovecot? What does
    Code:
    netstat -tap
    show then?
     
  14. aberrio

    aberrio New Member

    Hi,

    Done, here is the output

    mail:~ # 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 localhost:dyna-access *:* LISTEN 2415/clamd
    tcp 0 0 *:imap *:* LISTEN 9947/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 *:smtp *:* LISTEN 1480/master
    tcp 0 0 *:imaps *:* LISTEN 9947/dovecot
    tcp 0 0 localhost:10024 *:* LISTEN 2516/amavisd (maste
    tcp 0 0 localhost:10025 *:* LISTEN 1480/master
    tcp 0 0 *:mysql *:* LISTEN 1989/mysqld
    tcp 0 480 xxxxxxxxxx.net:12 adsl201-244201058:12549 ESTABLISHED 9960/0
    tcp 0 0 *:12 *:* LISTEN 1837/sshd
    tcp 0 0 *:sunrpc *:* LISTEN 2585/rpcbind
    tcp 0 0 *:www-http *:* LISTEN 562/httpd2-prefork
    tcp 0 0 *:smtp *:* LISTEN 1480/master
    tcp 0 0 *:https *:* LISTEN 562/httpd2-prefork

    Regards,
     
  15. falko

    falko Super Moderator ISPConfig Developer

    Now there's no POP3 daemon at all. Do you have pop3 and pop3s in the protocols line of your /etc/dovecot.conf?
     
  16. aberrio

    aberrio New Member

    I remove POP3 protocol from dovecot.conf. I do not use it at all. I am using IMAP. I am not able to sand email from a client?

    Any other suggestion?

    Regards,
     
  17. falko

    falko Super Moderator ISPConfig Developer

    Oh, I was thinking you were using POP3... Are there any errors in your mail log when you try to fetch mails with IMAP?
     
  18. aberrio

    aberrio New Member

    Hell
    I tried outlook and I am getting the followin error...

    Jan 12 09:14:09 mail postfix/smtpd[22968]: lost connection after AUTH from unknown[201.244.201.xx]
    Jan 12 09:14:09 mail postfix/smtpd[22968]: disconnect from unknown[201.244.201.xx]

    Kind regards,


    AL
     
  19. aberrio

    aberrio New Member

    Hello,

    Any other suggestion?

    Kind regards,

    AL
     
  20. falko

    falko Super Moderator ISPConfig Developer

    I have no idea... :(
     

Share This Page