OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Martin List-Petersen (martinlist-petersen.dk)
Date: Tue Apr 02 2002 - 01:27:05 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi,

    The following is happening for me:

    I've got 3 transports, which i use (virtual, vscan and notify), vscan is Amavis and notify is a custom script.
    In my transport table "notify.destination" (in log snippet) has transport notify: and "destination" has transport virtual:

    What now happens is, that the mail is delivered from outside (sendersomewhere.else) and delivered to the virusscanner, which reinjects the mail via SMTP on port 10025.

    mydestination has the following entry in the virtual table:
    mydestination mydestination,mynotify.destination

    This works and the mail gets delivered to both destinations, but still postfix says, that the mynotify.destination user is unknown. Funny enough this worked with no problems at all, when i used two instances of postfix and relaying between these two and amavis.
    Postfix was the same version in both configurations and is Snapshot-20011217

    Snip of master.cf:
    localhost:10025 inet n - n - - smtpd
                -o content_filter=
    vscan unix - n n - 10 pipe
                user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
    sms unix - n n - - pipe
                user=notify argv=/usr/local/notify/mailnotify ${recipient}

    Log snippet:
    Apr 2 09:03:19 somesrv postfix/qmgr[5175]: 630B05ADFC: from=<sendersomewhere.else>, size=1365, nrcpt=2 (queue active)
    Apr 2 09:03:20 somesrv postfix/smtpd[12957]: reject: RCPT from localhost[127.0.0.1]: 550 <mynotify.destination>: User unknown; from=<sendersomewhere.else> to=<mynotify.destination>
    Apr 2 09:03:25 somesrv postfix/smtpd[12957]: disconnect from localhost[127.0.0.1]
    Apr 2 09:03:25 somesrv postfix/pipe[12950]: 630B05ADFC: to=<mydestination>, relay=vscan, delay=6, status=sent
    Apr 2 09:03:25 somesrv postfix/pipe[12950]: 630B05ADFC: to=<mynotify.destination>, relay=vscan, delay=6, status=sent
    Apr 2 09:03:25 somesrv postfix/qmgr[5175]: 39D785AEDA: from=<sendersomewhere.else>, size=1593, nrcpt=2 (queue active)
    Apr 2 09:03:25 somesrv postfix/virtual[12966]: 39D785AEDA: to=<mydestination>, relay=virtual, delay=5, status=sent (maildir)
    Apr 2 09:03:27 somesrv postfix/pipe[12967]: 39D785AEDA: to=<mynotify.destination>, relay=notify, delay=7, status=sent

    Regards,
    Martin List-Petersen
    martinlist-petersen.dk

    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users