I want to configure my Postfix server as accepting all incoming mails to any arbitrary users who don't have to exist on the system, say [email protected]. Now Postfix says, User unknown in local recipient table. What I want is to accept this e-mail without rejecting it and pipe it to my python script. Any help would be gladly appreciated.
![]()
'What is the easiest way to install a mail server such that the sendmail command routes ALL mail to a local directory? I do NOT want any mail to be delivered to the internet.' This can actually be done using only the default postfix installation package (no need for postfix-pcre).
CarlosCarlos
1 Answer
You can use
Add the following to your
main.cf .
and the following to your
aliases file.
Run the following commands
and you can test the setup by following command
Emails to unknown users will be delivered to the python script. Hope that helps.
clementclement
Not the answer you're looking for? Browse other questions tagged emailpostfix-mta or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |