On Thu, 16 Jun 2022 17:18:56 +0100 Simon Harrison <[email protected]> wrote:
> Embarrassingly, I'm struggling to set up a relay from my home pc, > laptops etc via my servers. > > In the snippet below from the smtpd.conf, the match from src works > great. I can't work out the correct syntax for the match mail-from > line: > > table secrets file:/etc/mail/secrets > > action "relay" relay > > match from src xxx.xxx.xxx.xxx for any action "relay" > > match mail-from "[email protected]" auth <secrets> for any action > "relay" > > In /etc/mail/secrets I have > > [email protected] <output of smtpctl encrypt mypassword> > > Any help appreciated. > > Simon > OK, I've been doing some more research and realised the auth keyword should be in the listen section on server: server smtpd.conf: listen on eth0 port 25 tls pki mydomain.com \ filter { "rdns", "fcrdns", "check_dyndns" } \ auth <secrets> and on home computer smtpd.conf: action "relay2" relay host smtp://myserver.com auth <secrets> \ mail-from "[email protected]" But, when checking the log, I keep getting: result="PermFail" stat="530 5.5.1 Invalid command: Must issue an AUTH command first"
