H
H
Harbid Abu Marhamedoff2021-10-26 07:57:41
postfix
Harbid Abu Marhamedoff, 2021-10-26 07:57:41

How to create a [email protected] mailbox on postfix?

It was necessary to create a box for sending notification letters without the ability for recipients to send a response letter to postfix, something like [email protected] Created such a mailbox, configured
/etc/postfix/access:
[email protected] reject
Everything seems to be working, but the mail client does not want to be configured with such a configuration, it says that the configuration does not pass the test. Maybe somehow this can be configured on postfix in a different way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Mezhuev, 2021-10-26
@mezhuev

Apparently, the mail client is trying to check the correctness of the settings by sending a letter to itself. But since you have reject, then such a check certainly fails (response code 5xx). You have several options ( from top to bottom from simple to complex, from bottom to top from more correct to less correct ):

  1. Ignore error. If the other parameters are correct, then sending emails will work correctly.
  2. Instead rejectuse discard. Of the minuses, real senders will not receive a DSN report about the impossibility of delivery.
  3. Set up more flexible restrictions by allowing [email protected] to send emails to itself. Can be implemented by creating your own constraints via smtpd_restriction_classes.
  4. Delete this mailbox and use a synonym instead, by adding an additional profile in the user's mail client with the required address and sender's name. And so that everyone does not send mail from a given name, set it up smtpd_sender_login_maps.
  5. In general, do not do mailing by hand, but use the appropriate service.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question