Hi,
I have installed /ports/mail/ssmtp to replace sendmail on my FreeBSD 10.2 jail but I cannot receive any email from the server.
To clarify, the mail server is also in a jail on the same host but is using a dedicated plublic IP on EXTIF where my jails run on lo1 10.8.xx.xx
When I run the following commands, I get the exact same error message:
Here are my config files:
/etc/ssmtp/ssmtp.conf
etc/ssmtp/revaliases
Hope someone can help
I have installed /ports/mail/ssmtp to replace sendmail on my FreeBSD 10.2 jail but I cannot receive any email from the server.
To clarify, the mail server is also in a jail on the same host but is using a dedicated plublic IP on EXTIF where my jails run on lo1 10.8.xx.xx
When I run the following commands, I get the exact same error message:
mail -s "test email" myemail@gmail.com
Code:
Feb 18 14:51:25 jailhostname sSMTP[53680]: Creating SSL connection to host
Feb 18 14:51:25 jailhostname sSMTP[53680]: SSL connection using ECDHE-RSA-AES256-GCM-SHA384
Feb 18 14:51:25 jailhostname sSMTP[53680]: RCPT TO:<myemail@gmail.com> (554 5.7.1 <unknown[10.8.20.14]>: Client host rejected: Access denied)
mail -s "test email" root
Code:
Feb 18 14:51:25 jailhostname sSMTP[53680]: Creating SSL connection to host
Feb 18 14:51:25 jailhostname sSMTP[53680]: SSL connection using ECDHE-RSA-AES256-GCM-SHA384
Feb 18 14:51:25 jailhostname sSMTP[53680]: RCPT TO:<alerts@mydomain.co.uk> (554 5.7.1 <unknown[10.8.20.14]>: Client host rejected: Access denied)
/etc/ssmtp/ssmtp.conf
Code:
root=alerts@mydomain.co.uk
mailhub=mail.mydomain.co.uk:465
rewriteDomain=mydomain.co.uk
hostname=FQDN
UseTLS=YES
Code:
root:alerts@mydomain.co.uk:mail.mydomain.co.uk
alerts@mydomain.co.uk
is an alias and not a proper mailbox, so this is why I haven't got a password in the file above.Hope someone can help
Last edited: