sending via smarthost with authentication

Lucio Crusca <[email protected]>
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
Hello everybody,

I'm trying to configure courier-mta to relay all messages through an 
external smarthost (specifically Mailjet), and I need courier to 
authenticate against Mailjet with provided username and password.

I'm on a Debian GNU/Linux 12 server with packaged courier-mta 1.0.16.

Here is my /etc/courier/esmtproutes file:

: in-v3.mailjet.com,587

And here is my /etc/courier/esmtpauthclient (obviously with real user 
and password):

in-v3.mailjet.com myuser secret

its owner is courier (same user that's running courier daemon) and its 
perms are 0600.

My /etc/courier/smtpaccess/system contains:

127.0.0.1 allow,RELAYCLIENT
:0000:0000:0000:0000:0000:0000:0000:0001  allow,RELAYCLIENT
10  allow,RELAYCLIENT
192.168 allow,RELAYCLIENT

and I've already run makesmtpaccess and restarted courier just in case.

Courier is listening on 127.0.0.1:25 only and two local webapps are 
trying to send emails via unauthenticated SMTP on localhost.

In /etc/courier/locals I have only localhost and I'd like not to be 
forced to list all senders domains there nor anywhere else, if at all 
possible (I don't know if that's even needed).

Courier now logs "Relay access denied" for every message it receives.

I just need courier to listen on localhost:25, accept every piece of 
email it receives and relay it to Mailjet with authentication.

How should I configure it?


_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.