Problems with emails server (postfix, courier, mysql and squirrelmail)

Discussion in 'Server Operation' started by cleber_maverick, Nov 4, 2011.

  1. cleber_maverick

    cleber_maverick New Member

    I'm try configure an email server for virtual users with postfix, courier, mysql and squirrelmail in debian 6.
    I used this tutorial as a basis-> http://www.howtoforge.com/virtual-u...x-courier-mysql-and-squirrelmail-ubuntu-10.10
    The problem:

    I can not receive emails by postfix, but I can send via postfix. When I try logging in IMAP/POP3 occurs one error - "No such file or directory: No such file or directory" or "ERR chdir networkclub.com.br/cleber/ failed".

    Well below follow the testing of connections, log files, configuration files on it, and presentation of errors. I apologize for the post will be extensive.

    - postfix connection:
    Code:
    
    user@DNSERVER:/etc/courier$ telnet localhost 25
    Trying 127.0.0.1...
    Connected to DNSERVER.
    Escape character is '^]'.
    220 networkclub.com.br ESMTP Postfix (Debian/GNU)
    ehlo localhost
    250-networkclub.com.br
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN
    quit
    221 2.0.0 Bye
    Connection closed by foreign host.
    

    - send email by postfix:

    Code:
    telnet: envio de email
    user@DNSERVER:/etc/courier$ telnet localhost 25
    Trying 127.0.0.1...
    Connected to DNSERVER.
    Escape character is '^]'.
    220 networkclub.com.br ESMTP Postfix (Debian/GNU)
    Mail from: cleber
    250 2.1.0 Ok
    RCPT to: cleber@othermails.com
    250 2.1.5 Ok
    data
    354 End data with <CR><LF>.<CR><LF>
    Está enviando!
    .
    250 2.0.0 Ok: queued as AE17D6C2097
    quit
    221 2.0.0 Bye
    Connection closed by foreign host.
    
    P.S: When this email is received, the sender appears as cleber@networkclub.com.br
    
    - pop3 connection:

    Code:
    user@DNSERVER:/etc/courier$ telnet localhost 110
    Trying 127.0.0.1...
    Connected to DNSERVER.
    Escape character is '^]'.
    +OK Hello there.
    quit
    +OK Better luck next time.
    Connection closed by foreign host.
    

    - imap connection:

    Code:
    user@DNSERVER:/etc/courier$ telnet localhost 143
    Trying 127.0.0.1...
    Connected to DNSERVER.
    Escape character is '^]'.
    * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc.  See COPYING for distribution information.
    
    - server connections -tap

    Code:
    Proto Recv-Q Send-Q Endereço Local          Endereço Remoto         Estado      PID/Program name
    tcp        0      0 DNSERVER:mysql          *:*                     OUÇA       -               
    tcp        0      0 *:sunrpc                *:*                     OUÇA       -               
    tcp        0      0 DNSERVER.local:domain   *:*                     OUÇA       -               
    tcp        0      0 DNSERVER.local:domain   *:*                     OUÇA       -               
    tcp        0      0 DNSERVER:domain         *:*                     OUÇA       -               
    tcp        0      0 DNSERVER:ipp            *:*                     OUÇA       -               
    tcp        0      0 *:44952                 *:*                     OUÇA       -               
    tcp        0      0 *:smtp                  *:*                     OUÇA       -               
    tcp        0      0 DNSERVER:953            *:*                     OUÇA       -               
    tcp        0      0 DNSERVER:10024          *:*                     OUÇA       -               
    tcp        0      0 DNSERVER:10025          *:*                     OUÇA       -               
    tcp        0      0 DNSERVER:44941          DNSERVER:mysql          ESTABELECIDA -               
    tcp        0      0 DNSERVER:44962          DNSERVER:mysql          ESTABELECIDA -               
    tcp        0      0 DNSERVER:mysql          DNSERVER:44962          ESTABELECIDA -               
    tcp        0      0 DNSERVER:mysql          DNSERVER:44941          ESTABELECIDA -               
    tcp6       0      0 [::]:pop3               [::]:*                  OUÇA       -               
    tcp6       0      0 [::]:imap2              [::]:*                  OUÇA       -               
    tcp6       0      0 [::]:www                [::]:*                  OUÇA       -               
    tcp6       0      0 [::]:domain             [::]:*                  OUÇA       -               
    tcp6       0      0 [::]:ftp                [::]:*                  OUÇA       -               
    tcp6       0      0 ip6-localhost:ipp       [::]:*                  OUÇA       -               
    tcp6       0      0 ip6-localhost:953       [::]:*                  OUÇA       -               
    tcp6       0      0 [::]:imaps              [::]:*                  OUÇA       -               
    tcp6       0      0 [::]:pop3s              [::]:*                  OUÇA       -               
    tcp6       0      0 DNSERVER:imap2          DNSERVER:43198          TIME_WAIT   -               
    

    ------------------------------------------------------------------------------------
    | *************************************ERRORS******************* |
    ------------------------------------------------------------------------------------


    - login imap:

    Code:
    user@DNSERVER:/$ telnet localhost 143
    Trying 127.0.0.1...
    Connected to DNSERVER.
    Escape character is '^]'.
    * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2010 Double Precision, Inc.  See COPYING for distribution information.
    1 login cleber@networkclub.com.br xxxxxxxxxxx
    * BYE [ALERT] Fatal error: No such file or directory: No such file or directory
    Connection closed by foreign host.
    
    - login pop3:

    Code:
    user@DNSERVER:/$ telnet localhost 110
    Trying 127.0.0.1...
    Connected to DNSERVER.
    Escape character is '^]'.
    +OK Hello there.
    user cleber@networkclub.com.br
    +OK Password required.
    pass xxxxxxxxxxxxx
    -ERR chdir networkclub.com.br/cleber/ failed
    Connection closed by foreign host.
    
    error when trying to log in via squirrelmail (web)

    Code:
    ERROR: Connection dropped by IMAP server.
    

    ------------------------------------------------------------------------------------
    | *************************************LOGS******************** |
    ------------------------------------------------------------------------------------



    - user@DNSERVER:/$ tail /var/log/mail.err

    Code:
    Nov  3 12:20:27 DNSERVER imapd: cleber@networkclub.com.br: No such file or directory
    Nov  3 12:47:50 DNSERVER imapd: cleber@networkclub.com.br: No such file or directory
    Nov  3 13:29:33 DNSERVER imapd: (null): TOO MANY CONSECUTIVE PROTOCOL VIOLATIONS
    Nov  3 13:29:52 DNSERVER imapd: (null): TOO MANY CONSECUTIVE PROTOCOL VIOLATIONS
    Nov  3 13:32:18 DNSERVER imapd: (null): TOO MANY CONSECUTIVE PROTOCOL VIOLATIONS
    Nov  3 13:37:06 DNSERVER imapd: cleber@networkclub.com.br: No such file or directory
    Nov  3 14:36:42 DNSERVER imapd: cleber@networkclub.com.br: No such file or directory
    Nov  4 06:54:13 DNSERVER imapd: cleber@networkclub.com.br: No such file or directory
    Nov  4 09:22:43 DNSERVER imapd: cleber@networkclub.com.br: No such file or directory
    Nov  4 09:23:00 DNSERVER imapd: cleber@networkclub.com.br: No such file or directory
    
    user@DNSERVER:/$ tail /var/log/mail.log

    Code:
    Nov  4 06:59:38 DNSERVER pop3d: chdir networkclub.com.br/cleber/: No such file or directory
    Nov  4 07:01:01 DNSERVER pop3d: Connection, ip=[::ffff:127.0.0.1]
    Nov  4 07:01:16 DNSERVER pop3d: chdir networkclub.com.br/cleber/: No such file or directory
    Nov  4 09:21:55 DNSERVER imapd: Connection, ip=[::ffff:127.0.0.1]
    Nov  4 09:22:10 DNSERVER imapd: LOGIN FAILED, user=cleber@networkclub.com.br, ip=[::ffff:127.0.0.1]
    Nov  4 09:22:43 DNSERVER imapd: chdir networkclub.com.br/cleber/: No such file or directory
    Nov  4 09:22:43 DNSERVER imapd: cleber@networkclub.com.br: No such file or directory
    Nov  4 09:22:49 DNSERVER imapd: Connection, ip=[::ffff:127.0.0.1]
    Nov  4 09:23:00 DNSERVER imapd: chdir networkclub.com.br/cleber/: No such file or directory
    Nov  4 09:23:00 DNSERVER imapd: cleber@networkclub.com.br: No such file or directory
    

    - RETURN OF A MESSAGE SENT TO EMAIL cleber@networkclub.com.br

    Code:
    Mail Delivery System MAILER-DAEMON@networkclub.com.br para mim
    mostrar detalhes 12:25 (1 hora atrás)
    This is the mail system at host networkclub.com.br.
    
    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
    
    <networkclub.com.br/cleber/@networkclub.com.br> (expanded from
       <cleber@networkclub.com.br>): unknown user: "networkclub.com.br/cleber/"
    
    Final-Recipient: rfc822; networkclub.com.br/cleber/@networkclub.com.br
    Original-Recipient: rfc822;cleber@networkclub.com.br
    Action: failed
    Status: 5.1.1
    Diagnostic-Code: X-Postfix; unknown user: "networkclub.com.br/cleber/"
    

    ------------------------------------------------------------------------------------
    | *********************************Arquivos de configuração*************** |
    ------------------------------------------------------------------------------------



    Following the instructions of the tutorial I configured the six files for use in postfix:

    /etc/postfix/mysql-virtual_domains.cf
    /etc/postfix/mysql-virtual_forwardings.cf
    /etc/postfix/mysql-virtual_mailboxes.cf
    /etc/postfix/mysql-virtual_email2email.cf
    /etc/postfix/mysql-virtual_transports.cf
    /etc/postfix/mysql-virtual_mailbox_limit_maps.cf

    I created the directory for the allocation of input virtual boxes:
    /home/vmail.

    Configuration files:

    / etc / postfix / main.cf [/ b]


    Code:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
    
    
    # Debian specific:  Specifying a file name will cause the first
    # line of that file to be used as the name.  The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname
    
    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
    
    readme_directory = /usr/share/doc/postfix
    
    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    
    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.
    
    myhostname = networkclub.com.br
    mydomain   = networkclub.com.br	
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    mydestination =  localhost, localhost.localdomain, networkclub.com.br
    relayhost = 
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    html_directory = /usr/share/doc/postfix/html
    virtual_alias_domains = 
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, 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 = /home/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
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_create_maildirsize = yes
    virtual_maildir_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 $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
    content_filter = amavis:[127.0.0.1]:10024
    receive_override_options = no_address_mappings
    smtpd_tls_security_level = may
    relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
    relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
    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
    maildrop_destination_concurrency_limit = 1
    maildrop_destination_recipient_limit = 1
    virtual_transport = maildrop
    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
    
    /etc/postfix/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").
    #
    # 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
    #submission inet n       -       -       -       -       smtpd
    #  -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 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       -       -       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
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
    relay     unix  -       -       -       -       -       smtp
    	-o smtp_fallback_relay=
    #       -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}
    #=======================================================================
    #amavis
    
    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
            -o smtpd_bind_address=127.0.0.1
    
    /etc/pam.d/smtp

    Code:
    auth    required   pam_mysql.so user=mail_admin passwd=xxxxxxxxxx host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
    account sufficient pam_mysql.so user=mail_admin passwd=xxxxxxxxxx host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
    

    /etc/postfix/sasl/smtpd.conf

    Code:
    pwcheck_method: saslauthd
    mech_list: plain login
    allow_plaintext: true
    auxprop_plugin: mysql
    sql_hostnames: 127.0.0.1
    sql_user: mail_admin
    sql_passwd: xxxxxxxxxxxx
    sql_database: mail
    sql_select: select password from users where email = '%u'
    

    /etc/courier/authdaemonrc

    Code:
    ...
    ##NAME: authmodulelist:2
    #
    # The authentication modules that are linked into authdaemond.  The
    # default list is installed.  You may selectively disable modules simply
    # by removing them from the following list.  The available modules you
    # can use are: authuserdb authpam authpgsql authldap authmysql authcustom authpipe
    
    authmodulelist="authmysql"
    ...
    
    /etc/courier/authmysqlrc

    Code:
    MYSQL_SERVER localhost
    MYSQL_USERNAME mail_admin
    MYSQL_PASSWORD xxxxxxxxxxxxxxx
    MYSQL_PORT 0
    MYSQL_DATABASE mail
    MYSQL_USER_TABLE users
    MYSQL_CRYPT_PWFIELD password
    #MYSQL_CLEAR_PWFIELD password
    MYSQL_UID_FIELD 5000
    MYSQL_GID_FIELD 5000
    MYSQL_LOGIN_FIELD email
    MYSQL_HOME_FIELD "/home/vmail"
    MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
    #MYSQL_NAME_FIELD
    MYSQL_QUOTA_FIELD quota
    

    /etc/courier/imapd.cnf

    Code:
    
    RANDFILE = /usr/lib/courier/imapd.rand
    
    [ req ]
    default_bits = 1024
    encrypt_key = yes
    distinguished_name = req_dn
    x509_extensions = cert_type
    prompt = no
    
    [ req_dn ]
    C=BR
    ST=RS
    L=Porto Alegre
    O=Courier Mail Server
    OU=Automatically-generated IMAP SSL key
    CN=networkclub.com.br
    emailAddress = postmaster@networkclub.com.br
    
    
    [ cert_type ]
    nsCertType = server
    
    /etc/courier/pop3d.cnf

    Code:
    RANDFILE = /usr/lib/courier/pop3d.rand
    
    [ req ]
    default_bits = 1024
    encrypt_key = yes
    distinguished_name = req_dn
    x509_extensions = cert_type
    prompt = no
    
    [ req_dn ]
    C=BR
    ST=RS
    L=Porto Alegre
    O=Courier Mail Server
    OU=Automatically-generated POP3 SSL key
    CN=networkclub.com.br
    emailAddress=postmaster@networkclub.com.br
    
    
    [ cert_type ]
    nsCertType = server
    
    /etc/aliases
    Code:
    
    mailer-daemon: postmaster
    postmaster: root
    nobody: root
    hostmaster: root
    usenet: root
    news: root
    webmaster: root
    www: root
    ftp: root
    abuse: root
    noc: root
    security: root
    root: postmaster@networkclub.com.br.tld
    clamav: root
    
     
  2. till

    till Super Moderator

    The mailbox gets created when the first email arrives. So you have to send a email to this mailbox first before you can login with squirrelmail.
     
  3. cleber_maverick

    cleber_maverick New Member

    I already sent an email to cleber@networkclub.com.br but I get this message back:

    Code:
    Mail Delivery System [email]MAILER-DAEMON@networkclub.com.br[/email] for me
    show 10:06 (4 minutos atrás)
    This is the mail system at host networkclub.com.br.
    
    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
    
    <networkclub.com.br/cleber/@networkclub.com.br> (expanded from
       <cleber@networkclub.com.br>): unknown user: "networkclub.com.br/cleber/"
    
    Final-Recipient: rfc822; networkclub.com.br/cleber/@networkclub.com.br
    Original-Recipient: rfc822;cleber@networkclub.com.br
    Action: failed
    Status: 5.1.1
    Diagnostic-Code: X-Postfix; unknown user: "networkclub.com.br/cleber/"
    
    
     
  4. falko

    falko Super Moderator

    What's in your mail log when you send an email to that account?
     
  5. cleber_maverick

    cleber_maverick New Member

    sent mail by telnet

    Code:
    user@DNSERVER:~$ telnet localhost 25
    Trying 127.0.0.1...
    Connected to DNSERVER.
    Escape character is '^]'.
    220 networkclub.com.br ESMTP Postfix (Debian/GNU)
    Mail from: anyuser
    250 2.1.0 Ok
    rcpt to: cleber@networkclub.com.br
    250 2.1.5 Ok
    data
    354 End data with <CR><LF>.<CR><LF>
    Any message!       
    .
    250 2.0.0 Ok: queued as EEF566C2097
    quit
    221 2.0.0 Bye
    Connection closed by foreign host.
    
    /var/log/mail.log

    Code:
    5 06:47:24 DNSERVER postfix/smtpd[28981]: lost connection after RCPT from 114-42-139-139.dynamic.hinet.net[114.42.139.139]
    Nov  5 06:47:24 DNSERVER postfix/smtpd[28983]: lost connection after RCPT from 114-42-139-139.dynamic.hinet.net[114.42.139.139]
    Nov  5 06:47:24 DNSERVER postfix/smtpd[28981]: disconnect from 114-42-139-139.dynamic.hinet.net[114.42.139.139]
    Nov  5 06:47:24 DNSERVER postfix/smtpd[28983]: disconnect from 114-42-139-139.dynamic.hinet.net[114.42.139.139]
    Nov  5 06:50:44 DNSERVER postfix/anvil[28984]: statistics: max connection rate 2/60s for (smtp:114.42.139.139) at Nov  5 06:47:22
    Nov  5 06:50:44 DNSERVER postfix/anvil[28984]: statistics: max connection count 2 for (smtp:114.42.139.139) at Nov  5 06:47:22
    Nov  5 06:50:44 DNSERVER postfix/anvil[28984]: statistics: max cache size 1 at Nov  5 06:47:22
    Nov  5 09:45:41 DNSERVER postfix/smtpd[30179]: connect from DNSERVER[127.0.0.1]
    [b]Nov  5 09:46:10 DNSERVER postfix/trivial-rewrite[30184]: warning: do not list domain networkclub.com.br in BOTH mydestination and virtual_mailbox_domains
    Nov  5 09:46:25 DNSERVER postfix/trivial-rewrite[30184]: warning: do not list domain networkclub.com.br in BOTH mydestination and virtual_mailbox_domains
    Nov  5 09:46:25 DNSERVER postfix/smtpd[30179]: warning: connect to mysql server 127.0.0.1osts: Unknown MySQL server host '127.0.0.1osts' (1)[/b]
    Nov  5 09:46:25 DNSERVER postfix/smtpd[30179]: EEF566C2097: client=DNSERVER[127.0.0.1]
    Nov  5 09:48:09 DNSERVER postfix/cleanup[30185]: EEF566C2097: message-id=<20111105114625.EEF566C2097@networkclub.com.br>
    Nov  5 09:48:09 DNSERVER postfix/qmgr[20421]: EEF566C2097: from=<anyuser@networkclub.com.br>, size=368, nrcpt=1 (queue active)
    Nov  5 09:48:09 DNSERVER amavis[14464]: (14464-14) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 103) line 166, <GEN269> line 5.
    Nov  5 09:48:14 DNSERVER postfix/smtpd[30179]: disconnect from DNSERVER[127.0.0.1]
    Nov  5 09:48:18 DNSERVER postfix/smtpd[30198]: connect from DNSERVER[127.0.0.1]
    Nov  5 09:48:18 DNSERVER postfix/trivial-rewrite[30184]: warning: do not list domain networkclub.com.br in BOTH mydestination and virtual_mailbox_domains
    Nov  5 09:48:18 DNSERVER postfix/trivial-rewrite[30184]: warning: do not list domain networkclub.com.br in BOTH mydestination and virtual_mailbox_domains
    Nov  5 09:48:18 DNSERVER postfix/smtpd[30198]: F30606C23E8: client=DNSERVER[127.0.0.1]
    Nov  5 09:48:19 DNSERVER postfix/proxymap[30180]: warning: connect to mysql server 127.0.0.1osts: Unknown MySQL server host '127.0.0.1osts' (1)
    Nov  5 09:48:19 DNSERVER postfix/cleanup[30185]: F30606C23E8: message-id=<20111105114625.EEF566C2097@networkclub.com.br>
    Nov  5 09:48:19 DNSERVER postfix/qmgr[20421]: F30606C23E8: from=<anyuser@networkclub.com.br>, size=826, nrcpt=1 (queue active)
    Nov  5 09:48:19 DNSERVER postfix/smtpd[30198]: disconnect from DNSERVER[127.0.0.1]
    Nov  5 09:48:19 DNSERVER postfix/trivial-rewrite[30184]: warning: do not list domain networkclub.com.br in BOTH mydestination and virtual_mailbox_domains
    Nov  5 09:48:19 DNSERVER amavis[14464]: (14464-14) Passed CLEAN, LOCAL [127.0.0.1] [127.0.0.1] <anyuser@networkclub.com.br> -> <cleber@networkclub.com.br>, Message-ID: <20111105114625.EEF566C2097@networkclub.com.br>, mail_id: Sjf+bdBA+zuD, Hits: 1.98, size: 368, queued_as: F30606C23E8, 9066 ms
    Nov  5 09:48:19 DNSERVER postfix/smtp[30193]: EEF566C2097: to=<cleber@networkclub.com.br>, relay=127.0.0.1[127.0.0.1]:10024, delay=128, delays=119/0.02/0/9.1, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=14464-14, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as F30606C23E8)
    Nov  5 09:48:19 DNSERVER postfix/qmgr[20421]: EEF566C2097: removed
    Nov  5 09:48:19 DNSERVER postfix/local[30199]: F30606C23E8: to=<networkclub.com.br/cleber/@networkclub.com.br>, orig_to=<cleber@networkclub.com.br>, relay=local, delay=0.06, delays=0.03/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown user: "networkclub.com.br/cleber/")
    Nov  5 09:48:19 DNSERVER postfix/cleanup[30185]: 0C5B26C23E5: message-id=<20111105114819.0C5B26C23E5@networkclub.com.br>
    Nov  5 09:48:19 DNSERVER postfix/bounce[30200]: F30606C23E8: sender non-delivery notification: 0C5B26C23E5
    Nov  5 09:48:19 DNSERVER postfix/qmgr[20421]: 0C5B26C23E5: from=<>, size=2863, nrcpt=1 (queue active)
    Nov  5 09:48:19 DNSERVER postfix/trivial-rewrite[30184]: warning: do not list domain networkclub.com.br in BOTH mydestination and virtual_mailbox_domains
    Nov  5 09:48:19 DNSERVER postfix/qmgr[20421]: F30606C23E8: removed
    Nov  5 09:48:19 DNSERVER postfix/local[30199]: 0C5B26C23E5: to=<anyuser@networkclub.com.br>, relay=local, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "anyuser")
    Nov  5 09:48:19 DNSERVER postfix/qmgr[20421]: 0C5B26C23E5: removed
    

    sent mail by gmail cleber.azeredo@acad.pucrs.br

    /var/log/mail.log

    Code:
    Nov  5 10:13:05 DNSERVER postfix/smtpd[30371]: connect from mail-gx0-f170.google.com[209.85.161.170]
    Nov  5 10:13:06 DNSERVER postfix/trivial-rewrite[30374]: warning: do not list domain networkclub.com.br in BOTH mydestination and virtual_mailbox_domains
    Nov  5 10:13:06 DNSERVER postfix/proxymap[30372]: warning: connect to mysql server =: Unknown MySQL server host '=' (1)
    Nov  5 10:13:06 DNSERVER postfix/proxymap[30372]: warning: connect to mysql server 127.0.0.1osts: Unknown MySQL server host '127.0.0.1osts' (1)
    Nov  5 10:13:06 DNSERVER postfix/smtpd[30371]: warning: connect to mysql server =: Unknown MySQL server host '=' (1)
    Nov  5 10:13:06 DNSERVER postfix/smtpd[30371]: A72926C2097: client=mail-gx0-f170.google.com[209.85.161.170]
    Nov  5 10:13:06 DNSERVER postfix/cleanup[30375]: A72926C2097: message-id=<CAFiSi0mzkFMfMxudB-ygxvFn54ypZD1DFNiq9spk9szgaWuydA@mail.gmail.com>
    Nov  5 10:13:06 DNSERVER postfix/qmgr[20421]: A72926C2097: from=<cleber.azeredo@acad.pucrs.br>, size=1091, nrcpt=1 (queue active)
    Nov  5 10:13:07 DNSERVER amavis[14463]: (14463-14) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 103) line 166, <GEN289> line 5.
    Nov  5 10:13:14 DNSERVER postfix/smtpd[30382]: connect from DNSERVER[127.0.0.1]
    Nov  5 10:13:14 DNSERVER postfix/trivial-rewrite[30374]: warning: do not list domain networkclub.com.br in BOTH mydestination and virtual_mailbox_domains
    Nov  5 10:13:14 DNSERVER postfix/smtpd[30382]: 06EB66C23EA: client=DNSERVER[127.0.0.1]
    Nov  5 10:13:14 DNSERVER postfix/cleanup[30375]: warning: connect to mysql server =: Unknown MySQL server host '=' (1)
    Nov  5 10:13:14 DNSERVER postfix/cleanup[30375]: 06EB66C23EA: message-id=<CAFiSi0mzkFMfMxudB-ygxvFn54ypZD1DFNiq9spk9szgaWuydA@mail.gmail.com>
    Nov  5 10:13:14 DNSERVER postfix/smtpd[30382]: disconnect from DNSERVER[127.0.0.1]
    Nov  5 10:13:14 DNSERVER postfix/qmgr[20421]: 06EB66C23EA: from=<cleber.azeredo@acad.pucrs.br>, size=1549, nrcpt=1 (queue active)
    Nov  5 10:13:14 DNSERVER postfix/trivial-rewrite[30374]: warning: do not list domain networkclub.com.br in BOTH mydestination and virtual_mailbox_domains
    Nov  5 10:13:14 DNSERVER amavis[14463]: (14463-14) Passed CLEAN, [209.85.161.170] [209.85.161.170] <cleber.azeredo@acad.pucrs.br> -> <cleber@networkclub.com.br>, Message-ID: <CAFiSi0mzkFMfMxudB-ygxvFn54ypZD1DFNiq9spk9szgaWuydA@mail.gmail.com>, mail_id: Jx4w6OXDuuEm, Hits: -0.699, size: 1091, queued_as: 06EB66C23EA, 7067 ms
    Nov  5 10:13:14 DNSERVER postfix/smtp[30376]: A72926C2097: to=<cleber@networkclub.com.br>, relay=127.0.0.1[127.0.0.1]:10024, delay=7.7, delays=0.64/0.01/0/7.1, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=14463-14, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 06EB66C23EA)
    Nov  5 10:13:14 DNSERVER postfix/qmgr[20421]: A72926C2097: removed
    Nov  5 10:13:14 DNSERVER postfix/local[30384]: 06EB66C23EA: to=<networkclub.com.br/cleber/@networkclub.com.br>, orig_to=<cleber@networkclub.com.br>, relay=local, delay=0.04, delays=0.02/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown user: "networkclub.com.br/cleber/")
    Nov  5 10:13:14 DNSERVER postfix/cleanup[30375]: 1194F6C23E5: message-id=<20111105121314.1194F6C23E5@networkclub.com.br>
    Nov  5 10:13:14 DNSERVER postfix/bounce[30385]: 06EB66C23EA: sender non-delivery notification: 1194F6C23E5
    Nov  5 10:13:14 DNSERVER postfix/qmgr[20421]: 1194F6C23E5: from=<>, size=3592, nrcpt=1 (queue active)
    Nov  5 10:13:14 DNSERVER postfix/qmgr[20421]: 06EB66C23EA: removed
    Nov  5 10:13:16 DNSERVER postfix/smtp[30386]: 1194F6C23E5: to=<cleber.azeredo@acad.pucrs.br>, relay=aspmx.l.google.com[74.125.65.27]:25, delay=2.3, delays=0/0.01/0.72/1.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1320495241 q12si5728316anp.143)
    Nov  5 10:13:16 DNSERVER postfix/qmgr[20421]: 1194F6C23E5: removed
    Nov  5 10:13:37 DNSERVER postfix/smtpd[30371]: disconnect from mail-gx0-f170.google.com[209.85.161.170]
    
    return message automatically

    Code:
    
    Mail Delivery System MAILER-DAEMON@networkclub.com.br para mim
    mostrar detalhes 10:13 (4 minutos atrás)
    This is the mail system at host networkclub.com.br.
    
    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
    
    <networkclub.com.br/cleber/@networkclub.com.br> (expanded from
       <cleber@networkclub.com.br>): unknown user: "networkclub.com.br/cleber/"
    
    Final-Recipient: rfc822; networkclub.com.br/cleber/@networkclub.com.br
    Original-Recipient: rfc822;cleber@networkclub.com.br
    Action: failed
    Status: 5.1.1
    Diagnostic-Code: X-Postfix; unknown user: "networkclub.com.br/cleber/"
    
    
    ---------- Mensagem encaminhada ----------
    From: Cleber Azeredo <cleber.azeredo@acad.pucrs.br>
    To: cleber@networkclub.com.br
    Date: Sat, 5 Nov 2011 10:13:49 -0200
    Subject: Any message
    Any message! 
    
    
    setting up accounts and domains in the database

    Code:
    mysql> show tables;
    +----------------+
    | Tables_in_mail |
    +----------------+
    | domains        |
    | forwardings    |
    | transport      |
    | users          |
    +----------------+
    4 rows in set (0.00 sec)
    
    Code:
    ysql> SELECT * FROM domains;
    +--------------------+
    | domain             |
    +--------------------+
    | networkclub.com.br |
    +--------------------+
    1 row in set (0.00 sec)
    
    Code:
    mysql> SELECT * FROM users;
    +--------------------------------+---------------+----------+
    | email                          | password      | quota    |
    +--------------------------------+---------------+----------+
    | cleber@networkclub.com.br      | XRuleiVQeDXnM | 10485760 |
    | teste@networclub.com.br        | cPgDFqktIphaM | 10485760 |
    | teste2@networkclub.com.br      | BOdmrnPmpLLpo | 10485760 |
    | postmaster@networklclub.com.br | WlIJHmHlO0.7. | 10485760 |
    +--------------------------------+---------------+----------+
    4 rows in set (0.00 sec)
    
     
  6. falko

    falko Super Moderator

Share This Page