Hello everyone,
I wonder if someone here could help me troubleshooting my OpenSMTPD installation. I want to use OpenSMTPD as a local mail delivery and relay to Google's Gmail. All I want is for all the internal system email sent to root to be delivered to my Gmail account.
I have installed it via the port tree and below is my configuration file usr/local/etc/mail/smtpd.conf:
When I run
Thank you all in advance,
Fred
I wonder if someone here could help me troubleshooting my OpenSMTPD installation. I want to use OpenSMTPD as a local mail delivery and relay to Google's Gmail. All I want is for all the internal system email sent to root to be delivered to my Gmail account.
I have installed it via the port tree and below is my configuration file usr/local/etc/mail/smtpd.conf:
Code:
listen on 127.0.0.1 port 25
hostname "mail.domain.ltd"
map "aliases" { source db "/usr/local/etc/mail/aliases.db" }
map "secrets" { source db "/usr/local/etc/mail/secrets.db" }
accept for local deliver to mda "procmail -f -"
accept for all relay via "smtp.gmail.com" port 587 tls enable auth
When I run
smtpd -dv
, I get the following error message:
Code:
/usr/local/etc/mail/smtpd.conf:11: syntax error
/usr/local/etc/mail/smtpd.conf:14: syntax error
/usr/local/etc/mail/smtpd.conf:21: syntax error
Thank you all in advance,
Fred