Problem with postfix (only local messages)

Discussion in 'HOWTO-Related Questions' started by cibles, Feb 17, 2014.

  1. cibles

    cibles New Member

    [solved] Problem with postfix (only local messages)

    Hello Falko,

    I installed a seveur by following this procedure: The Perfect Server - Debian Wheezy (Apache2, BIND, Dovecot, ISPConfig 3)

    Sending messages works very well to domains present on other servers.

    However, sending messages to the one currently present on the domain server does not work ...

    Example:

    box1@localdomain to box1@externaldomain works

    but

    box1@localdomain to box2@localdomain does not work

    [localdomain] is the affected server
    [externaldomain] is on another server
     
    Last edited: Feb 18, 2014
  2. cibles

    cibles New Member

    The logs

    Code:
    dovecot: imap-login: Login: user=<box1>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2460, secured, session=<rRVZN6nylgB/AAAB>
    postfix/pickup[2390]: E4A03B00066: uid=33 from=<box1@localhost>
    postfix/cleanup[2463]: E4A03B00066: message-id=<[email protected]>
    postfix/qmgr[2391]: E4A03B00066: from=<[email protected]>, size=557, nrcpt=1 (queue active)
    dovecot: imap([email protected]): Disconnected: Logged out in=479 out=517
    postfix/smtpd[2470]: connect from localhost.mylocaldomain.com[127.0.0.1]
    [COLOR="Red"]postfix/trivial-rewrite[2465]: warning: do not list domain mylocaldomain.com in BOTH mydestination and virtual_mailbox_domains[/COLOR]
    postfix/smtpd[2470]: 51362B00062: client=localhost.mylocaldomain.com[127.0.0.1]
    postfix/cleanup[2463]: 51362B00062: message-id=<[email protected]>
    postfix/qmgr[2391]: 51362B00062: from=<[email protected]>, size=1210, nrcpt=1 (queue active)
    postfix/smtpd[2470]: disconnect from localhost.mylocaldomain.com[127.0.0.1]
    [COLOR="Red"]postfix/trivial-rewrite[2465]: warning: do not list domain mylocaldomain.com in BOTH mydestination and virtual_mailbox_domains[/COLOR]
    amavis[27256]: (27256-10) Passed CLEAN {RelayedInbound}, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: xToRIskxOKZB, Hits: 1.178, size: 557, queued_as: 51362B00062, 367 ms
    postfix/smtp[2467]: E4A03B00066: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.54, delays=0.17/0.01/0/0.37, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 51362B00062)
    postfix/qmgr[2391]: E4A03B00066: removed
    postfix/local[2473]: 51362B00062: to=<[email protected]>, relay=local, delay=0.09, delays=0.04/0.01/0/0.04, dsn=5.1.1, status=bounced (unknown user: "box2")
    postfix/cleanup[2463]: 682A7B00068: message-id=<[email protected]>
    postfix/bounce[2474]: 51362B00062: sender non-delivery notification: 682A7B00068
    postfix/qmgr[2391]: 682A7B00068: from=<>, size=3087, nrcpt=1 (queue active)
    postfix/qmgr[2391]: 51362B00062: removed
    postfix/smtp[2475]: 682A7B00068: to=<[email protected]>, relay=none, delay=0.06, delays=0.05/0.01/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost.mylocaldomain.com type=AAAA: Host not found)
    postfix/qmgr[2391]: 682A7B00068: removed
     
    Last edited: Feb 18, 2014
  3. cibles

    cibles New Member

    Solution !!!

    In /etc/postfix.main.cf, I had :

    Code:
    [I]mydestination[/I] = mylocaldomain.com, localhost, localhost.localdomain
    I replaced by :

    Code:
    [I]mydestination[/I] = localhost, localhost.localdomain
    because mylocaldomain.com is already called by the parameter virtual_mailbox_domains

    And now, It works !
     

Share This Page