When I wanted to secure my mail server, I got help from people on forums
and on this mailing list.
So I followed their explanations and advice (DKIM, SPF, DMARC, spams,...).
From what I had been told and what I could read, port 465 is deprecated
and I had to use port 587. So for outgoing emails I use port 587.
For incoming emails I use port 993 because I didn't want to use POP3 but
only IMAP.
For "local" emails (accounts used by my private servers) I use port 25
to send because these accounts do not send to external email and are
redirected to my personnal account. Only 4 email accounts are used to
send/receive emails form/to external emails.
smtpd_milters = inet:localhost:12345
what does this do?
It's used by opendkim.
I put disclaimer filter directive under "submission" line in
master.cf and keep "postscreen":
smtp inet n - y - 1 postscreen
[...]
submission inet n - y - - smtpd
-o content_filter=disclaimer:
are you aware that submission only applies to mail submitted via port
587?
It's seems yes but not sure.
--------------------------------------------------
Ce message et toutes les pièces jointes (ci-après le "message") sont établis à
l’intention exclusive des destinataires désignés. Il contient des informations
confidentielles et pouvant être protégé par le secret professionnel. Si vous recevez ce
message par erreur, merci d'en avertir immédiatement l'expéditeur et de détruire le
message. Toute utilisation de ce message non conforme à sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse de
l’émetteur. L'internet ne garantissant pas l'intégrité de ce message lors de son
acheminement, l'expéditeur décline toute responsabilité au titre de son contenu. Bien que
ce message ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne
peut garantir l’absence totale de logiciels malveillants dans son contenu et ne pourrait
être tenu pour responsable des dommages engendrés par la transmission de l’un d’eux.
This message and any attachments (the "message") are intended solely for the
addressee(s). It contains confidential information, that may be privileged. If you
receive this message in error, please notify the sender immediately and delete the
message. Any use of the message in violation of its purpose, any dissemination or
disclosure, either wholly or partially is strictly prohibited, unless it has been
explicitly authorized by the sender. As its integrity cannot be secured on the internet,
the sender decline any liability for the content of this message. Although the sender
endeavors to maintain a computer virus-free network, the sender does not warrant that
this transmission is virus-free and will not be liable for any damages resulting from any
virus transmitted.
--------------------------------------------------