-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net_smtp: Allow mail submissions for non-local domains.
Previously, users were only able to submit mail for identites that corresponded to local mailboxes on the system. However, it may be desirable for a user to submit mail locally and have it relayed to an authorized sender for this domain. This adds the concept of "authorized identities" for local mail users, which allows sending as any arbitrary identities, particularly useful for multi-node private mail transit.
- Loading branch information
1 parent
d31303c
commit 23b4859
Showing
2 changed files
with
123 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,31 @@ loglevel=5 ; Log level from 0 to 10 (maximum debug). Default is 5. | |
;10.1.1.3 = yes ; The actual value does not matter and is ignored. | ||
;10.1.0.0/24 = yes ; CIDR ranges and hostnames are also acceptable. | ||
|
||
[authorized_senders] ; Mapping of additional identities as which a user is allowed to send email. | ||
; This is intended for if you want to allow users to submit outgoing mail on this server using these addresses, | ||
; even though their incoming mail may be handled elsewhere. This mail will then be accepted and either | ||
; delivered using an MX record lookup or by the static routes defined in [static_relays]. | ||
; The domains of the identites used here do NOT need to be configured in [domains] in mod_mail.conf. | ||
; | ||
; An alternate is using the RELAY MailScript rule to submit mail using the message submission service for that domain. | ||
; | ||
; WARNING: Before adding any identites, you SHOULD ensure that any domains with identities included below | ||
; authorize the host sending mail to the Internet (e.g. via SPF/DKIM). There are typically two scenarios: | ||
; 1. The public IP address of this server's egress to the Internet is authorized. In this case, | ||
; you're good to go. | ||
; 2. This server's public IP address is not authorized. In this case, you should ensure a "smart host" | ||
; is configured through the [static_relays] section, to relay outgoing mail for these domains | ||
; (and possibly all email traffic) to another SMTP server which IS authorized. | ||
; | ||
; In other words, ensure that you have the necessary SPF records set up for your domain, | ||
; and ensure that you have the correct static routes in place to ensure it egresses appropriately | ||
; and not from an unauthorized IP address. If an upstream "smart host" handles DKIM signing | ||
; for domains configured here, then you don't need to do it on this server, which can simply | ||
; configuration in a private mail routing network by allowing you to centralized signing on the egress server. | ||
; | ||
;john = [email protected],*@john.example.net ; Allow local user 'john' to submit outgoing mail additionally using [email protected] or *@john.example.net | ||
;jane = * ; Allow local user 'jane' to submit outgoing mail using ANY identity (DANGEROUS!) | ||
|
||
[privs] | ||
;relayin=1 ; Minimum privilege level required to accept external email for a user. | ||
;relayout=1 ; Minimum privilege level required to relay external email outbound for a user. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters