Answer the question
In order to leave comments, you need to log in
How to configure Postfix/Exim to receive all mail?
Good evening!
Could you tell me how to configure Postfix/Exim so that it receives all mail regardless of the sender's domain (without any checks for blacklists, DNS records, etc.) even if the recipient does not exist and put it in a local directory in the form files (one file per letter). You don't need to send mail from the server, just receive it.
Thank you.
Answer the question
In order to leave comments, you need to log in
Exim can be configured as follows:
begin routers
blackhole:
driver = accept
transport = blackhole
begin transports
blackhole:
driver = appendfile
directory = /var/tmp/blackhole/
delivery_date_add
envelope_to_add
return_path_add
group = mail
For Postfix, this can be figured out using a system of aliases and regexps. See here what you need to write to which files and replace the regexp with this one: /^.*$/ (this means a match for everything).
Sincerely,
S.
Maybe it's easier to use this - www.technoreply.com/finally-a-dummy-smtp-for-linux/
Just your case.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question