LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2013, 08:31 AM   #1
badger_fruit
Member
 
Registered: Dec 2008
Posts: 43

Rep: Reputation: 1
Mail error 530 5.5.1 when sending emails


AIM:
We currently generate newsfeed email alerts to our subscribers when new news articles get published.
Our system generates numerous mails and via installed Postfix 2.2 this sends via our gateway mailserver smtp:mail2.example.com server for delivery.
We are wanting to remove the smtp:mail2.example.com server and thus now our MX records now specify google servers responsible for accepting email on behalf of example.com.
To remove smtp:mail2.example.com gateway server from this current architecture we want our mail to be passed to google for delivery.



ERROR:
postfix/qmgr[26846]: 0C1D626180D: from=<newsfeed@example.com>, size=451, nrcpt=1 (queue active)
postfix/qmgr[26846]: 85C40261811: from=<root@localhost.localdomain>, size=907, nrcpt=1 (queue active)
postfix/smtp[26916]: 85C40261811: to=<root@localhost.localdomain>, relay=smtp.gmail.com[173.194.67.109]:587, delay=324, delays=324/0.03/0.12/0.01, dsn=4.5.1, status=SOFTBOUNCE (host smtp.gmail.com[173.194.67.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://support.google.com/mail/bin/a...y?answer=14257 cw8sm2372621wib.7 - gsmtp (in reply to MAIL FROM command))


CONFIGURATION:
Our postix relay configuration on host server fronttest1:-

smtp passwords are stored in /etc/postfix/sasl_passwd
[smtp.gmail.com] newsfeed@example.com:*****************************
[gmail-smtp.l.google.com] newsfeed@example.com:*****************************


Postfix relay configuration are stored in /etc/postfix/main.cf
## Tells Postfix which host to use when relaying mail. Google's SMTP server
## name goes here, along with the correct SMTP port.
relayhost = [smtp.gmail.com]:587
relay_transport = relay
smtp_connection_cache_destinations = smtp.gmail.com
relay_destination_concurrency_limit = 1
default_destination_concurrency_limit = 5
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_use_tls = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_note_starttls_offer = yes
tls_random_source = dev:/dev/urandom
smtp_tls_scert_verifydepth = 5
smtp_tls_CAfile=/etc/pki/CA/private/cakey.pem
smtp_tls_key_file=/etc/postfix/mail.example.key
smtp_tls_cert_file=/etc/postfix/mail.example.pem
smtp_tls_enforce_peername = no
smtpd_tls_req_ccert = no
smtpd_tls_ask_ccert = yes
smtp_tls_note_starttls_offer = yes
soft_bounce = yes

transport configuration for internal destinations are stored in /etc/postfix/transport
example.com smtp:[smtp.gmail.com]:587

I hope the information above is sufficient but I will be happy to answer any other questions that you have!
Thank you for reading and I hope that someone can help us find a solution!
 
Old 06-21-2013, 09:12 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,103

Rep: Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381
Quote:
Originally Posted by badger_fruit View Post
AIM:
We currently generate newsfeed email alerts to our subscribers when new news articles get published.
Our system generates numerous mails and via installed Postfix 2.2 this sends via our gateway mailserver smtp:mail2.example.com server for delivery.
We are wanting to remove the smtp:mail2.example.com server and thus now our MX records now specify google servers responsible for accepting email on behalf of example.com.
To remove smtp:mail2.example.com gateway server from this current architecture we want our mail to be passed to google for delivery.
And have you read any of the how-tos, as far as how to use Gmail as a relay???
http://mhawthorne.net/posts/postfix-...-as-relay.html
http://freelinuxtutorials.com/quick-...in-rhelcentos/
Quote:
postfix/smtp[26916]: 85C40261811: to=<root@localhost.localdomain>, relay=smtp.gmail.com[173.194.67.109]:587, delay=324, delays=324/0.03/0.12/0.01, dsn=4.5.1, status=SOFTBOUNCE (host smtp.gmail.com[173.194.67.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://support.google.com/mail/bin/a...y?answer=14257 cw8sm2372621wib.7 - gsmtp (in reply to MAIL FROM command))
Did you read the link that Google pointed you to?
Quote:
I hope the information above is sufficient but I will be happy to answer any other questions that you have! Thank you for reading and I hope that someone can help us find a solution!
Well, the problem appears to be a login/authentication issue. Since you're wanting to use Gmail as the upstream relay, you have to configure Postfix to send things along and authenticate. You're missing a piece somewhere.
 
Old 06-21-2013, 10:18 AM   #3
badger_fruit
Member
 
Registered: Dec 2008
Posts: 43

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by TB0ne View Post
And have you read any of the how-tos, as far as how to use Gmail as a relay???
http://mhawthorne.net/posts/postfix-...-as-relay.html
http://freelinuxtutorials.com/quick-...in-rhelcentos/

Did you read the link that Google pointed you to?

Well, the problem appears to be a login/authentication issue. Since you're wanting to use Gmail as the upstream relay, you have to configure Postfix to send things along and authenticate. You're missing a piece somewhere.

Hi TB0ne
Thanks for the reply ...
I've just picked this up from a colleague who left so am only passing on what I've been given; no, I've not personally read any of those links but I sure will.
The link that google provided didn't seem to offer much help to my former colleage but from what I understand, he read it and it didn't help matters.
I'll have a read of the links though and post back, fingers crossed!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mail program sending multiple emails countrydj Linux - General 2 09-02-2011 11:24 AM
Mutt stopped sending emails without an error ille.pugil42 Linux - Software 1 06-23-2006 03:45 PM
problems with From: header when sending emails from my domain using mail() function mavgh1 Linux - General 5 03-26-2006 02:48 PM
problems with From : header when sending emails with function mail() from my domain mavgh1 Linux - Software 0 03-24-2006 07:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration