mail for web.carnould.com loops back to myself

Discussion in 'Installation/Configuration' started by ranouf, Jul 25, 2008.

  1. ranouf

    ranouf New Member

    Hello,

    I follow this tutorial : http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-ubuntu8.04-p4

    But when I want to send a mail like this :
    mailx [email protected] -s HELLOWORD
    .

    I have these messages in /var/log/mail.log
    Jul 25 19:02:59 web postfix/pickup[3659]: 8F9B737FEC: uid=0 from=<root>
    Jul 25 19:02:59 web postfix/cleanup[3749]: 8F9B737FEC: message-id=<[email protected]>
    Jul 25 19:02:59 web postfix/qmgr[3663]: 8F9B737FEC: from=<[email protected]>, size=299, nrcpt=1 (queue active)
    Jul 25 19:03:01 web postfix/smtpd[3754]: connect from localhost[127.0.0.1]
    Jul 25 19:03:01 web postfix/smtpd[3754]: 78D1C37FEB: client=localhost[127.0.0.1]
    Jul 25 19:03:01 web postfix/cleanup[3749]: 78D1C37FEB: message-id=<[email protected]>
    Jul 25 19:03:01 web postfix/qmgr[3663]: 78D1C37FEB: from=<[email protected]>, size=932, nrcpt=1 (queue active)
    Jul 25 19:03:01 web postfix/smtpd[3754]: disconnect from localhost[127.0.0.1]
    Jul 25 19:03:01 web postfix/smtp[3755]: 78D1C37FEB: to=<[email protected]>, relay=none, delay=0.03, delays=0.01/0.01/0/0, dsn=5.4.6, status=bounced (mail for web.carnould.com loops back to myself)
    Jul 25 19:03:01 web postfix/cleanup[3749]: 8422038547: message-id=<[email protected]>
    Jul 25 19:03:01 web postfix/qmgr[3663]: 8422038547: from=<>, size=2801, nrcpt=1 (queue active)
    Jul 25 19:03:01 web postfix/bounce[3756]: 78D1C37FEB: sender non-delivery notification: 8422038547
    Jul 25 19:03:01 web postfix/qmgr[3663]: 78D1C37FEB: removed
    Jul 25 19:03:01 web postfix/smtp[3755]: 8422038547: to=<[email protected]>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for web.carnould.com loops back to myself)
    Jul 25 19:03:01 web postfix/qmgr[3663]: 8422038547: removed
    Jul 25 19:03:01 web amavis[3251]: (03251-04) Passed CLEAN, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: iXeZjZTdDllo, Hits: 2.88, size: 299, queued_as: 78D1C37FEB, 1925 ms
    Jul 25 19:03:01 web postfix/smtp[3752]: 8F9B737FEC: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=2, delays=0.06/0.01/0.01/1.9, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 78D1C37FEB)
    Jul 25 19:03:01 web postfix/qmgr[3663]: 8F9B737FEC: removed


    I imagine that the problem could be come from DNS configuration :
    web.carnould.com. A - 88.191.46.33
    web.carnould.com. MX 10 web.carnould.com.

    Or perhaps /etc/postifx/main.cf
    # 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 (Ubuntu)
    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 = web.carnould.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = web.carnould.com, localhost, localhost.localdomain
    #relayhost =
    mynetworks = 127.0.0.0/8, 88.191.46.33/24
    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_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 $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


    Or /etc/hostname :
    web.carnould.com

    Could you help me please ?
     
  2. ranouf

    ranouf New Member

    I have more informations about my DNS :
    host -v -t MX web.carnould.com


    Trying "web.carnould.com"
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16231
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

    ;; QUESTION SECTION:
    ;web.carnould.com. IN MX

    ;; ANSWER SECTION:
    web.carnould.com. 80043 IN MX 10 web.carnould.com.

    ;; AUTHORITY SECTION:
    carnould.com. 79656 IN NS ns2.serveursdns.net.
    carnould.com. 79656 IN NS ns1.serveursdns.net.

    ;; ADDITIONAL SECTION:
    web.carnould.com. 79656 IN A 88.191.46.33
    ns2.serveursdns.net. 166056 IN A 217.76.128.160
    ns1.serveursdns.net. 166056 IN A 217.76.129.160

    Received 149 bytes from 127.0.0.1#53 in 1 ms


    Is it ok ?
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Please add web.carnould.com to the mydestination line in /etc/postfix/main.cf and restart Postfix.
     
  4. ranouf

    ranouf New Member

    I succeed !
    The pb was in Table Transport I wite my IP in transport instead of ":"

    Thanks for your help
     

Share This Page