Skip to content

postdel.8

Manvendra Bhangui edited this page Feb 25, 2024 · 5 revisions

NAME

postdel - deliver mail to a user in a virtual domain using postfix

SYNOPSYS

postdel -u recipient -r sender [-f]

DESCRIPTION

postdel(8) is called from the postfix's master.cf configuration file to deliver email to a virtual user. postdel sets the environment variables EXT, HOST and RPLINE which is used by vdelivermail(8) to set the user and the domain component of the email address. postdel(8) forks and calls vdelivermail(8) and gets the exit status. The exit status is than mapped to postfix/sendmail compatible exit status. Since vdelivermail(8) can handle only one recipient at at time, the variable default_destination_recipient_limit=1 should be set in main.cf. If default_destination_recipient_limit is set to more than 1, all mails will bounce with usage error. Hopefully this will be corrected in future versions.

indimail unix - n n - - pipe user=indimail argv=/usr/sbin/postdel -u ${recipient} -r ${sender}

OPTIONS

-f
Use vfilter instead of vdelivermail

-u
Recipient of the email

-r
Sender's email address.

RETURN VALUE

  • 0 if all steps were successful.

  • 67 for permanent errors. i.e. if user is over quota or bounce-no-mailbox is set and no matching user is found.

  • 75 for all temporary error occurs during mail delivery and without the error, the mail would have got delivered.

  • 71 for Operating System Errors.

  • 70 for Software Bugs

  • 64 for errors due to misconfiguration.

SEE ALSO

vdelivermail(8)

Clone this wiki locally