hosts:virtual_machines:web:mail
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
hosts:virtual_machines:web:mail [2023/02/21 01:32] – created netbox | hosts:virtual_machines:web:mail [2023/08/30 17:55] – tcmal | ||
---|---|---|---|
Line 1: | Line 1: | ||
[[meta: | [[meta: | ||
+ | ===== Mail ===== | ||
^ Name | Mail | | ^ Name | Mail | | ||
^ Ports | 993, 587, 143, 465, 25 (tcp) | | ^ Ports | 993, 587, 143, 465, 25 (tcp) | | ||
Line 5: | Line 6: | ||
[[meta: | [[meta: | ||
+ | Sends and receives email. | ||
+ | |||
+ | If not used to the jumble of services used for mail, [[https:// | ||
+ | |||
+ | When receiving: | ||
+ | |||
+ | - Postfix receives an incoming SMTP connection | ||
+ | - Postfix queries [[hosts: | ||
+ | - Postfix checks it with rspamd | ||
+ | - If rspamd decides we should deliver it, we pass it to dovecot through LMTP | ||
+ | - Dovecot queries [[hosts: | ||
+ | - The user then uses their MUA to access their mailbox through dovecot (over IMAP) | ||
+ | |||
+ | When sending: | ||
+ | |||
+ | - Postfix receives an SMTP connection on port 587 | ||
+ | - The user authenticates, | ||
+ | - Dovecot uses bind authentication against our [[hosts: | ||
+ | - Postfix cleans up the headers and passes it to OpenDKIM to do signing | ||
+ | - Postfix sends the signed message to wherever it needs to go | ||
+ | |||
+ | ===== Data directories ===== | ||
+ | |||
+ | * ''/ | ||
+ | |||
+ | ===== Configuration locations ===== | ||
+ | |||
+ | Managed declaratively using [[https:// | ||
+ | |||
+ | ===== Adding a custom domain ===== | ||
+ | |||
+ | ==== Receiving ==== | ||
+ | |||
+ | - Set the MX of the domain to '' | ||
+ | - Add the new domain to the '' | ||
+ | - Add '' | ||
+ | - Send a test email to one of the new emails. You should see a directory created in ''/ | ||
+ | - This folder needs its permissions fixed, so run '' | ||
+ | * This happens because dovecot creates the initial directory as belonging to whatever user first received mail, which will break as soon as any other user tries to use it, including dovecot' | ||
+ | - Login to IMAP or Webmail using your new email address (with domain), and your regular Tardis password. | ||
+ | |||
+ | ==== Sending ==== | ||
+ | |||
+ | - Do everything for receiving above | ||
+ | - Add an SPF record: A TXT Record at root with value'' | ||
+ | - Add a DKIM record: A TXT Record at '' | ||
+ | - Add a DMARC record: A TXT Record at '' | ||
+ | - Add your domain to the opendkim domains list [[https:// | ||
+ | - [[https:// | ||
+ | |||
+ | |||
+ | ==== Extra Stuff ==== | ||
+ | |||
+ | If you'd like to have setting autodiscovery work in clients like Outlook and Thunderbird, | ||
+ | |||
+ | < | ||
+ | <?xml version=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ |
hosts/virtual_machines/web/mail.txt · Last modified: 2023/08/30 17:55 by tcmal