Hi all,
I originally posted this in a different thread in the General forum, but this has stopped being about general FreeBSD issues and started being specifically about sendmail, so I thought I would move it to what looks like the correct subforum.
I have FreeBSD installed on my fileserver. This isn't a machine that I log into normally on the command line unless something is wrong. However, several things send emails to the root account that I would like to get.
A friendly fellow by the name of Jose suggested I simply alias root to my personal address (in this case, a GMail account) in /etc/aliases, run newaliases, and then send a message from the command line to test that it worked. And for a bit it did. Then I ran into several other issues (all of which ended up being local networking configurations) and it stopped working until I fixed those. Then it worked again.
Fast forward to today, it's stopped working again. Apparently GMail has blocked me; I get this from their server (I've obfuscated all of the personal details):
Unfortunately, that's not helpful, because Google Fiber is my service provider, and they don't seem to have an SMTP relay.
I actually have my domain via Google Domains, too, but if there's any way to change the DNS records to make this work I don't know what it is. My outward facing IP is dynamic, and while forward lookup works, reverse lookup doesn't work. The FreeBSD fileserver isn't connected directly to the internet anyway; even if reverse lookup did work it would return mygateway.mydomain.net instead of fileserver.mysubdomain.mydomain.net.
I don't actually know if any of that matters anyway, because while I have a semi-competent grasp on DNS I don't understand email at all.
Anyone have any suggestions of things to try or troubleshooting avenues to go down? I'm at a complete loss here, I don't even know where to start. The only thing I'm certain of is that the local mail alias is still working.
I originally posted this in a different thread in the General forum, but this has stopped being about general FreeBSD issues and started being specifically about sendmail, so I thought I would move it to what looks like the correct subforum.
I have FreeBSD installed on my fileserver. This isn't a machine that I log into normally on the command line unless something is wrong. However, several things send emails to the root account that I would like to get.
A friendly fellow by the name of Jose suggested I simply alias root to my personal address (in this case, a GMail account) in /etc/aliases, run newaliases, and then send a message from the command line to test that it worked. And for a bit it did. Then I ran into several other issues (all of which ended up being local networking configurations) and it stopped working until I fixed those. Then it worked again.
Fast forward to today, it's stopped working again. Apparently GMail has blocked me; I get this from their server (I've obfuscated all of the personal details):
Code:
yourname@gmail.com... Connecting to gmail-smtp-in.l.google.com. via esmtp...
220 mx.google.com ESMTP f37si6243403qte.211 - gsmtp
>>> EHLO fileserver.mysubdomain.mydomain.net
250-mx.google.com at your service, [136.56.39.40]
250-SIZE 157286400
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
>>> STARTTLS
220 2.0.0 Ready to start TLS
>>> EHLO fileserver.mysubdomain.mydomain.net
250-mx.google.com at your service, [136.56.39.40]
250-SIZE 157286400
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
>>> MAIL From:<root@fileserver.mysubdomain.mydomain.net> SIZE=69
250 2.1.0 OK f37si6243403qte.211 - gsmtp
>>> RCPT To:<yourname@gmail.com>
>>> DATA
250 2.1.5 OK f37si6243403qte.211 - gsmtp
354 Go ahead f37si6243403qte.211 - gsmtp
>>> .
550-5.7.1 [X.X.X.X] The IP you're using to send mail is not authorized to
550-5.7.1 send email directly to our servers. Please use the SMTP relay at your
550-5.7.1 service provider instead. Learn more at
550 5.7.1 https://support.google.com/mail/?p=NotAuthorizedError f37si6243403qte.211 - gsmtp
root... aliased to yourname@gmail.com
/root/dead.letter... Saved message in /root/dead.letter
Closing connection to gmail-smtp-in.l.google.com.
>>> QUIT
Unfortunately, that's not helpful, because Google Fiber is my service provider, and they don't seem to have an SMTP relay.
I actually have my domain via Google Domains, too, but if there's any way to change the DNS records to make this work I don't know what it is. My outward facing IP is dynamic, and while forward lookup works, reverse lookup doesn't work. The FreeBSD fileserver isn't connected directly to the internet anyway; even if reverse lookup did work it would return mygateway.mydomain.net instead of fileserver.mysubdomain.mydomain.net.
I don't actually know if any of that matters anyway, because while I have a semi-competent grasp on DNS I don't understand email at all.
Anyone have any suggestions of things to try or troubleshooting avenues to go down? I'm at a complete loss here, I don't even know where to start. The only thing I'm certain of is that the local mail alias is still working.