You are not logged in.
Hi there,
I want to send mails using gmail as relay. I don't want any incoming mail so i did not set up mailboxes through aliases.
# smtpd -n
/etc/smtpd/smtpd.conf:6: table "secrets" may not be used for auth lookups
/etc/smtpd/smtpd.conf:7: no such dispatcher: relay
warn: no rules, nothing to dosmtpd.conf:
myname = "Cab Nerdnils"
pki cab.fritz.box cert "/etc/ssl/certs/mailserver.pem"
pki cab.fritz.box key "/etc/ssl/private/mailserver.pem"
listen on lo tls pki cab.fritz.box
relayhost = smtp.gmail.com:587
table "secrets" { source db "/etc/smtpd/secrets.db" }
action "relay" relay host "smtps://[mymailadress]@smtp.gmail.com" auth <secrets> mail-from "cab Nerdnils <[mymailadress]>"
match for any action "relay"As file format for secrets.db I tried the format described https://wiki.archlinux.org/title/OpenSMTPD
root <hash created as described in the wiki>
nerdnils <hash created as described in the wiki>
I tried
root [mymailadress@gmail.com]:<hash created as described in the wiki>
nerdnils [mymailadress@gmail.com]:<hash created as described in the wiki>
I tried
root [mymailadress@gmail.com]:[mypassword]
nerdnils [mymailadress@gmail.com]:[mypassword]
I tried
root [mypassword]
nerdnils [mypassword]
All are giving the same error. Can not be used for auth lookups. This error can not be searched on the internet. Only 1 hit: the source which is a bit to hard to read to get the reason for the error for me.
What am I doing wrong?
Offline