Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: relaying to different smarthosts #175

Open
leahneukirchen opened this issue Aug 3, 2020 · 3 comments
Open

Feature request: relaying to different smarthosts #175

leahneukirchen opened this issue Aug 3, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@leahneukirchen
Copy link
Contributor

As a notqmail user, I want to relay mail via different smarthosts according to the Sender or From address, e.g. to send work mail through the work SMTP server and private mail over a different host.

Together with #174, this also needs to support different credentials per smarthost.

@leahneukirchen leahneukirchen added the enhancement New feature or request label Aug 3, 2020
@schmonz
Copy link
Member

schmonz commented Nov 20, 2020

IIRC, you've mentioned s/qmail has this functionality. How does one configure it? Any shortcomings of that approach, or would we do well to borrow it?

@leahneukirchen
Copy link
Contributor Author

It adds a new config file to qmail-remote:

       authsenders
            Authenticated sender.  For each sender included in authsenders:
            sender:relay;port|user|password qmail-remote will try SMTP
            Authentication of type CRAM-MD5, LOGIN, or PLAIN with the provided
            user name user and password password (the authentication
            information) and eventually relay the mail through relay on port
            port.  The use of relay and port follows the same rules as for
            smtproutes Note: In case sender is empty, qmail-remote will try to
            deliver each outgoing mail SMTP authenticated. If the
            authentication information is missing, the mail is delivered none-
            authenticated.  authsenders can be constructed as follows:

               @example.com:relay.example.com|user|passwd
               info@example.com:relay.example.com;26|infouser|infopasswd
               :mailrelay.example.com|e=mc2|testpass

@schmonz
Copy link
Member

schmonz commented Dec 18, 2020

Cool, we may as well be compatible with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants