Score:0

Error in config, reported only as syntax error

cn flag

I have a simple config (based on googling and copy paste) that contains an error, I don't know how to proceed.

I would like to forward all mails received to an smtp-server that requires username+password+TLS

The config:

listen on 0.0.0.0 port 25
action "relay" relay host "smtp://smtp.foo.bar" mail-from "@foo.bar"
match for any action "relay"

Apparently there is an error on line 2:

Oct 13 21:08:56 raspberrywood systemd[1]: Starting OpenSMTPD SMTP server...
Oct 13 21:08:56 raspberrywood smtpd[16986]: /etc/smtpd.conf:2: syntax error
Oct 13 21:08:56 raspberrywood smtpd[16986]: warn: no rules, nothing to do
Oct 13 21:08:56 raspberrywood systemd[1]: opensmtpd.service: Control process exited, code=exited, status=1/FAILURE
Oct 13 21:08:56 raspberrywood systemd[1]: opensmtpd.service: Failed with result 'exit-code'.
Oct 13 21:08:56 raspberrywood systemd[1]: Failed to start OpenSMTPD SMTP server.
Paul avatar
cn flag
Were you able to resolve this?
cn flag
No sorry, I got stuck there and left it at that
Paul avatar
cn flag
Please post OS with version, version of OpenSMTPD, and the contents of `smtpd.conf` or `opensmtpd.conf` (whichever you have).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.