Hello, I have a couple of servers that are scripted to send cron script output logs to my email address (a Gmail address). Mailx is what I am using, but I didn’t have to configure anything; I installed it, and it just worked with the following command:
mailx -s “SUBJECT” -r FROMMYADDRESS TOMYADDRESS < FILETOCATANDSEND
This occurs every Saturday and Sunday at noon after my backup scripts run.
I noticed yesterday that I did not receive these logs, so I logged into the machine, started ‘mail’ and saw messages like this:
This is the mail system at host media.deagle.lan.
####################################################################
THIS IS A WARNING ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE.
####################################################################
Your message could not be delivered for more than 1 hour(s).
It will be retried until it is 5 day(s) old.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<ron@deagle.us>: host alt1.aspmx.l.google.com[209.85.217.45] said: 421-4.7.0
[67.169.235.81] Our system has detected an unusual amount of 421-4.7.0
unsolicited mail originating from your IP address. To protect our 421-4.7.0
users from spam, mail sent from your IP address has been temporarily
421-4.7.0 blocked. Please visit
Bulk Senders Guidelines - Gmail Help 421 4.7.0 to review our Bulk
Email Senders Guidelines. 5si5781745gxk.17 (in reply to end of DATA
command)
Final-Recipient: rfc822; ron@deagle.us
Action: delayed
Status: 4.7.0
Remote-MTA: dns; alt1.aspmx.l.google.com
Diagnostic-Code: smtp; 421-4.7.0 [67.169.235.81] Our system has detected an
unusual amount of 421-4.7.0 unsolicited mail originating from your IP
address. To protect our 421-4.7.0 users from spam, mail sent from your IP
address has been temporarily 421-4.7.0 blocked. Please visit
Bulk Senders Guidelines - Gmail Help 421 4.7.0 to review our Bulk
Email Senders Guidelines. 5si5781745gxk.17
Will-Retry-Until: Thu, 15 Oct 2009 17:08:26 -0700 (PDT)
I’m not sure how two messages a week qualifies as ‘bulk’, but… I am assuming that this is because I am sending it ‘from’ my gmail address via the smtp server in mailx??
Is it possible to configure mailx to use an external smtp server? As stated earlier, I didn’t have to configure anything initially to get it to work, and have never had to mess with mail/mailx/postfix/sendmail, so it’s a bit Greek to me.
Any assistance would be GREATLY appreciated!! Thanks in advance!