Glenn Tenney via Postfix-users skrev den 2024-03-18 03:52:
My question in one, hopefully simple sentence, is:
In Postfix, how do I configure Postfix such that all email to
"user@some.domain" will return an error code (e.g. 550 user unknown)
to bounce that email????
Victor gave a vierd config :)
postfix must not return any result on non existsing users, so if this
gives no result user is unknown, with in turn gives postfix user not
found, to keep things very simple mydestination must only have unix
users where @ is not auth without realm-domain, when this is in place
you can in virtual_alias_maps map remote mail recipient to system users
mailbox, of not all is virtual_domained
so in practices use mydestination: localhost
and make virtual all mail for the rest, this fits nicely with dovecot
then
postmap -q unknown-user hash:/path-to/hash-file
if it gives no result, then this user does not exists
if unknown-user exists, it should give virtual-user-mailbox-storage-user
unsure then show logs if error is there
and lastly show postconf -nf on request, i don't need this yet
i have succes with postfixadmin so no users is in hash files, but in
sqlite mysql postgresql as you see fit
and i have no use for system users mailboxes
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org