On 22/02/11 11:47, Matteo Cazzador wrote:
hello i've a strange question about a request, is it possible to create
an account (not alias) that can only receive mail and not send?
I've a virtual server with mysql backend and saslauth that uses imap login.
Thank's


How about a simple check_sender_access located *before* permit_mynetworks and any authentication methods:

smtpd_recipient_restrictions =
    check_sender_access
        hash:/etc/postfix/sender_access,
    permit_mynetworks,
    permit_sasl_authenticated,
    ...

/etc/postfix/sender_access
u...@example.com        REJECT You are not permitted to send mail
# or to block the domain from sending mail
example.com             REJECT This domain can't send mail


Would that work?

Reply via email to