V
V
v2t2012-11-29 04:23:04
linux
v2t, 2012-11-29 04:23:04

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

3 answer(s)
D
DmZ, 2012-11-29
@v2t

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

Then it will add any mail to the /var/tmp/blackhole/ directory (in the maildir format)
But I would advise you to separate local mail (from cron and other utility programs) and any other.
If you need a full Exim config, please contact :)

S
Spamkit, 2012-11-29
@Spamkit

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.

S
shadowalone, 2012-11-29
@shadowalone

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 question

Ask a Question

731 491 924 answers to any question