Quoth Viktor Dukhovni (21 Aug 2015, 14:21):

> $ postconf -n
>> virtual_alias_maps =
>> ldap:/usr/local/etc/postfix/example.com-groups.cf
>> ldap:/usr/local/etc/postfix/example.com-users.cf
>
>
> Using "proxy:ldap" is often better than using "ldap:".

Ok, I've changed that, thanks.

>> virtual_mailbox_domains = example.com
>> virtual_mailbox_maps =
>> hash:/usr/local/etc/postfix/virtual-example.com.net-mailbox
>> virtual_transport = lmtp:unix:private/dovecot-lmtp
>
>
> If this system accepts random recipients for @example.com, it
> would be because of a wildcard entry for that domain in either
>
> vitual_alias_maps or virtual_mailbox_maps.
>
>
>> $ cat virtual-example.com-mailbox
>> [email protected]     OK
>
>
> Obviously not here.
>
>
>> $ postmap -q [email protected] 
>> ldap:/usr/local/etc/postfix/example.com-groups.cf
>> $ postmap -q [email protected] 
>> ldap:/usr/local/etc/postfix/example.com-users.cf
>
>
> And what happens when you try:
>
> $ postmap -q @example.com ldap:/usr/local/etc/postfix/example.com-users.cf
> $ postmap -q @example.com ldap:/usr/local/etc/postfix/example.com-groups.cf


$ postmap -q @example.com ldap:/usr/local/etc/postfix/example.com-users.cf
$ postmap -q @example.com ldap:/usr/local/etc/postfix/example.com-groups.cf
$ 

Nothing, as expected.


>> 2015-08-21T10:43:01.504741+02:00 <mail.info> ponyboy1b postfix/lmtp[7475]: 
>> 671E21AF14F: to=<[email protected]>, 
>> relay=ponyboy1b.acct.example.com[private/dovecot-lmtp], delay=0.09, 
>> delays=0.03/0.01/0/0.05, dsn=2.0.0, status=sent (250 2.0.0 
>> <[email protected]> MliGOHjk1lU0HQAAYdfT9A Saved)
>
>
> And where did this mail originate?  (Show all log entries for the queue id).

Locally submitted, by:

$ date | mail [email protected] [email protected]

The full logs related to this message are:

2015-08-21T14:41:46.887499+02:00 <mail.info> ponyboy1b postfix/pickup[38808]: 
D88B31AF18E: uid=1006 from=<js>
2015-08-21T14:41:46.911555+02:00 <mail.info> ponyboy1b postfix/cleanup[39051]: 
D88B31AF18E: message-id=<[email protected]>
2015-08-21T14:41:46.920037+02:00 <mail.info> ponyboy1b postfix/qmgr[38807]: 
D88B31AF18E: from=<[email protected]>, size=345, nrcpt=2 (queue active)
2015-08-21T14:41:46.930986+02:00 <mail.info> ponyboy1b dovecot: lmtp(39172): 
Connect from local
2015-08-21T14:41:46.947672+02:00 <mail.info> ponyboy1b postfix/lmtp[39054]: 
D88B31AF18E: to=<[email protected]>, 
relay=ponyboy1b.acct.example.com[private/dovecot-lmtp], delay=0.07, 
delays=0.04/0.01/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 <[email protected]> 
bgpCHVUc11UEmQAAYdfT9A Saved)
2015-08-21T14:41:46.947748+02:00 <mail.info> ponyboy1b dovecot: 
lmtp([email protected]): bgpCHVUc11UEmQAAYdfT9A: 
msgid=<[email protected]>: saved mail to 
INBOX
2015-08-21T14:41:46.956836+02:00 <mail.info> ponyboy1b postfix/lmtp[39054]: 
D88B31AF18E: to=<[email protected]>, 
relay=ponyboy1b.acct.example.com[private/dovecot-lmtp], delay=0.08, 
delays=0.04/0.01/0/0.03, dsn=2.0.0, status=sent (250 2.0.0 
<[email protected]> bgpCHVUc11UEmQAAYdfT9A Saved)
2015-08-21T14:41:46.956900+02:00 <mail.info> ponyboy1b dovecot: 
lmtp([email protected]): bgpCHVUc11UEmQAAYdfT9A: 
msgid=<[email protected]>: saved mail to 
INBOX
2015-08-21T14:41:46.957550+02:00 <mail.info> ponyboy1b dovecot: lmtp(39172): 
Disconnect from local: Successful quit
2015-08-21T14:41:46.957656+02:00 <mail.info> ponyboy1b postfix/qmgr[38807]: 
D88B31AF18E: removed


Regards, Jeroen.
-- 
Jeroen Scheerder
ON2IT B.V.
Regterweistraat 7
4181 CE WAARDENBURG
T: +31 88 22 66 200 | F: +31 88 22 66 299
W: www.on2it.net    | E: [email protected]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to