Mail server problem

Discussion in 'Server Operation' started by ColdDoT, Jan 31, 2006.

  1. ColdDoT

    ColdDoT Member

    server:~# iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Ok, it's not the firewall. Did you forward port 25 to the correct server?
     
  3. ColdDoT

    ColdDoT Member

    View attachment 64
    The ip for the server local is for sure.
    the ip is 10.0.0.13(local)
    But can it not be in the sasl2 autencation?
     
    Last edited: May 7, 2006
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I dont think so. Even if sasl is not working at all you will get an SMTP promt.
     
  5. ColdDoT

    ColdDoT Member

    Thats strange but then the thing remein that if a send a message whit me local computer 10.0.0.12 i can't send it to [email protected] whit the local smtp server from 10.0.0.13
     
  6. ColdDoT

    ColdDoT Member

    sorry but my router was not so good configured :S
    but i have done it and so all porst i give are open agina(i hope)
     
    Last edited: Feb 7, 2006
  7. ColdDoT

    ColdDoT Member

    So who can test my smtp server now
     
  8. falko

    falko Super Moderator ISPConfig Developer

    I can connect to server.colddot.nl:

    Code:
    vm03:~# telnet server.colddot.nl 25
    Trying 81.69.79.160...
    Connected to nm-dkbg-131a0.adsl.wanadoo.nl.
    Escape character is '^]'.
    220 colddot.nl ESMTP Postfix (Debian/GNU)
    ehlo localhost
    250-colddot.nl
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH LOGIN PLAIN
    250-AUTH=LOGIN PLAIN
    250 8BITMIME
    quit
    221 Bye
    Connection closed by foreign host.
     
  9. ColdDoT

    ColdDoT Member

    I know the problem only not the solution

    Feb 8 22:04:25 localhost postfix/smtpd[6671]: connect from smtp06.wanadoo.nl[194.134.35.146]
    Feb 8 22:04:25 localhost postfix/trivial-rewrite[6675]: warning: do not list domain colddot.nl in BOTH mydestination and vir
    tual_mailbox_domains
    Feb 8 22:04:25 localhost postfix/smtpd[6671]: 896396A8ACD: client=smtp06.wanadoo.nl[194.134.35.146]
    Feb 8 22:04:25 localhost postfix/cleanup[6680]: 896396A8ACD: message-id=<[email protected]>
    Feb 8 22:04:25 localhost postfix/qmgr[1650]: 896396A8ACD: from=<[email protected]>, size=2350, nrcpt=1 (queue active)
    Feb 8 22:04:25 localhost postfix/smtpd[6671]: disconnect from smtp06.wanadoo.nl[194.134.35.146]
    Feb 8 22:04:25 localhost amavis[1709]: (01709-02) lookup_sql: 2006, MySQL server has gone away
    Feb 8 22:04:25 localhost amavis[1709]: (01709-02) NOTICE: Disconnected from SQL server
    Feb 8 22:04:25 localhost amavis[1709]: (01709-02) TROUBLE in check_mail: creating_partsdir FAILED: DBD::mysql::st execute fa
    iled: MySQL server has gone away at (eval 38) line 238, <GEN17> line 62.
    Feb 8 22:04:25 localhost amavis[1709]: (01709-02) PRESERVING EVIDENCE in /var/lib/amavis/amavis-20060207T075700-01709
    Feb 8 22:04:25 localhost postfix/smtp[6681]: 896396A8ACD: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=0, st
    atus=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=01709-02, creating_partsdir FAILED: DBD::mys
    ql::st execute failed: MySQL server has gone away at (eval 38) line 238, <GEN17> line 62. (in reply to end of DATA command))


    what does it means ?
     
    Last edited: Feb 8, 2006
  10. falko

    falko Super Moderator ISPConfig Developer

    Have a look here: http://www.howtoforge.com/forums/showpost.php?p=11904&postcount=11
    If you use colddot.nl for virtual hosting, then you can't have it in the mydestination line in /etc/postfix/main.cf.


    Please check if MySQL is still running. Maybe it's a good idea to restart it.
     
  11. ColdDoT

    ColdDoT Member

    ok now i got
    Code:
    Feb  8 22:42:25 localhost postfix/smtpd[1788]: connect from smtp04.wanadoo.nl[194.134.35.144]
    Feb  8 22:42:25 localhost postfix/smtpd[1788]: EE9646A8ACE: client=smtp04.wanadoo.nl[194.134.35.144]
    Feb  8 22:42:25 localhost postfix/cleanup[1654]: EE9646A8ACE: message-id=<[email protected]>
    Feb  8 22:42:25 localhost postfix/qmgr[1653]: EE9646A8ACE: from=<[email protected]>, size=2352, nrcpt=1 (queue active)
    Feb  8 22:42:26 localhost postfix/smtpd[1788]: disconnect from smtp04.wanadoo.nl[194.134.35.144]
    Feb  8 22:42:26 localhost courierpop3login: Connection, ip=[::ffff:82.171.81.100]
    Feb  8 22:42:29 localhost dccproc[1797]: socket(UDP): Address family not supported by protocol
    Feb  8 22:42:31 localhost courierpop3login: LOGIN FAILED, ip=[::ffff:82.171.81.100]
    Feb  8 22:42:33 localhost postfix/smtpd[1726]: connect from localhost.localdomain[127.0.0.1]
    Feb  8 22:42:33 localhost postfix/smtpd[1726]: 80B1A6A8ACF: client=localhost.localdomain[127.0.0.1]
    Feb  8 22:42:33 localhost postfix/cleanup[1743]: 80B1A6A8ACF: message-id=<[email protected]>
    Feb  8 22:42:33 localhost postfix/qmgr[1653]: 80B1A6A8ACF: from=<[email protected]>, size=2797, nrcpt=1 (queue active)
    Feb  8 22:42:33 localhost postfix/smtpd[1726]: disconnect from localhost.localdomain[127.0.0.1]
    Feb  8 22:42:33 localhost amavis[1710]: (01710-01) Passed, <[email protected]> -> <[email protected]>, Message-ID: <200602
    [email][email protected][/email]>, Hits: 0.398
    Feb  8 22:42:33 localhost postfix/smtp[1663]: EE9646A8ACE: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=8, st
    atus=sent (250 2.6.0 Ok, id=01710-01, from MTA: 250 Ok: queued as 80B1A6A8ACF)
    Feb  8 22:42:33 localhost postfix/qmgr[1653]: EE9646A8ACE: removed
    Feb  8 22:42:40 localhost postfix/smtp[1733]: 80B1A6A8ACF: to=<[email protected]>, relay=none, delay=7, status=bounced (ma
    il for localhost loops back to myself)
    Feb  8 22:42:40 localhost postfix/cleanup[1654]: 9723D6A8ACE: message-id=<[email protected]>
    Feb  8 22:42:40 localhost postfix/qmgr[1653]: 9723D6A8ACE: from=<>, size=4413, nrcpt=1 (queue active)
    Feb  8 22:42:40 localhost postfix/qmgr[1653]: 80B1A6A8ACF: removed
    
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Add localhost to the mydestination line in /etc/postfix/main.cf and restart Postfix.
     
  13. ColdDoT

    ColdDoT Member

    still remains
    Code:
    Feb  9 07:41:57 localhost amavis[1973]: (01973-01) Passed, <[email protected]> -> <[email protected]>, Message-ID: <200602
    [email protected]>, Hits: 0.414
    Feb  9 07:41:57 localhost postfix/smtp[2578]: 7D4746A8ACE: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=8, st
    atus=sent (250 2.6.0 Ok, id=01973-01, from MTA: 250 Ok: queued as DAA8E6A8ACF)
    Feb  9 07:41:57 localhost postfix/qmgr[2565]: 7D4746A8ACE: removed
    Feb  9 07:41:57 localhost postfix/smtpd[2586]: disconnect from localhost.localdomain[127.0.0.1]
    Feb  9 07:42:04 localhost postfix/smtp[2587]: DAA8E6A8ACF: to=<[email protected]>, relay=none, delay=7, status=bounced (ma
    il for localhost loops back to myself)
    Feb  9 07:42:04 localhost postfix/cleanup[2577]: ECE406A8ACE: message-id=<[email protected]>
    Feb  9 07:42:04 localhost postfix/qmgr[2565]: ECE406A8ACE: from=<>, size=4408, nrcpt=1 (queue active)
    Feb  9 07:42:04 localhost postfix/qmgr[2565]: DAA8E6A8ACF: removed
    
    my postfix config looks like
    Code:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
    
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    
    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h
    
    myhostname = colddot.nl
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = localhost, localhost.localdomain, 127.0.0.1
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2emai
    l.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 = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_use_tls = yes
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_create_maildirsize = yes
    virtual_mailbox_extended = yes
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virt
    ual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $re
    located_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    content_filter = amavis:[127.0.0.1]:10024
    receive_override_options = no_address_mappings
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    
    strange that it remains
     
  14. falko

    falko Super Moderator ISPConfig Developer

    Did you restart Postfix?
     
  15. ColdDoT

    ColdDoT Member

    And my transport table looks like
    colddot.nl smtp:localhost
     
  16. ColdDoT

    ColdDoT Member

    YES it works now in the end it was my transport table i dont know but if a delete it then my mail server works perfect


    So thanks for all your help all greets colddot
     
  17. deezone

    deezone New Member

    how did you deleted your transport table? What exactly did you do? I have a similar problem of not able to receive externam mail (Internet mail).
     
    Last edited: Feb 11, 2006
  18. ColdDoT

    ColdDoT Member

    I just deleted the everything that stands in my msql transport table thats all
     
  19. deezone

    deezone New Member

    Where can I find "msql transport table?"
     
  20. falko

    falko Super Moderator ISPConfig Developer

Share This Page