I'm not sure if this is in the correct place, so please move it if not.
I'd like to have my system messages sent to an external address. I've aliased 'root' corrected in /etc/aliases and ran newaliases as usual.
I test this by running
[cmd=]mail -s "test mail" root < /dev/null[/cmd]
The problem I'm running into is that the sendmail mta is setting the 'from' address as the hostname, causing my external account (which is running on gmail servers) to refuse the connection. Here is the log (actual "to=" & "ctladd" changed):
Any ideas how I can get around this? I thought about configuring the sendmail from address, but I'm at a loss about how to do this on FreeBSD and google hasn't been too fruitful.
I'd like to have my system messages sent to an external address. I've aliased 'root' corrected in /etc/aliases and ran newaliases as usual.
I test this by running
[cmd=]mail -s "test mail" root < /dev/null[/cmd]
The problem I'm running into is that the sendmail mta is setting the 'from' address as the hostname, causing my external account (which is running on gmail servers) to refuse the connection. Here is the log (actual "to=" & "ctladd" changed):
Code:
Nov 23 00:50:12 daemon sm-mta[25448]: oAN6oCtx025447: to=andre @ gmail.address.tld, ctladdr=<root @ localhost.domain.tld> (0/0),
delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30644, relay=aspmx.l.google.com. [74.125.95.27], dsn=4.0.0, stat=Deferred: Connection
refused by aspmx.l.google.com.
Any ideas how I can get around this? I thought about configuring the sendmail from address, but I'm at a loss about how to do this on FreeBSD and google hasn't been too fruitful.