I have setup a postfix mail server to my local ubuntu system. it sends mail properly but for gmail account it is not received from gmail account.
here is the output of maillog
Jun 15 14:29:33 aum30 postfix/smtp[29509]: D2E95360910: to=, relay=gmail-smtp-in.l.google.com[74.125.24.26]:25, delay=3, delays=0.09/0/2.3/0.69, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[74.125.24.26] said: 550-5.7.1 [117.223.148.98] 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 g2si1886184plk.487 - gsmtp (in reply to end of DATA command))
How can I solve this?
Your ISP may provide SMTP relays which will accept mail from your IP, and these servers should be authorized to send mail.
Your IP 117.223.148.98 is on the PBL: https://www.spamhaus.org/pbl/query/PBL1528741
Related
I have this problem in Laravel 5.5.44 with Swift Mailer package trying to sending emails. This is the mail that the Swift Mailer package send to the server responsible for sending e-mails to the users:
This is the mail system at host user-ws.localdomain.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
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
<cxxx#gmail.com>: host gmail-smtp-in.l.google.com[74.125.71.26] said:
550-5.7.1 [41.X.X.X] The IP address sending this message does not have a
PTR 550-5.7.1 record setup. As a policy, Gmail does not accept messages
from IPs 550-5.7.1 with missing PTR records. Please visit 550-5.7.1
https://support.google.com/mail/answer/81126#authentication for more 550
5.7.1 information. p10-v6si4248809wrw.296 - gsmtp (in reply to end of DATA
command)
Can you guys help me?
Well, the error message that you received from googlemail is quite clear:
As a policy, Gmail does not accept messages from IPs 550-5.7.1 with
missing PTR records.
This means that the domain that you use in the FROM: header of your mail must have a DNS A-record pointed to the IP address of the host from which the email was sent.
To clarify:
your domain: example.com
your FROM adress: whitejson#example.com
your IP: 1.2.3.4
A-Record of domain example.com must map to IP 1.2.3.4 in your DNS server.
If the server is only in your local network it will be impossible to send a mail to googlemail that does not comply with this rule.
If you want to earn +2 reputation then mark this answer as accepted.
I am having some problem on sending email through my company's website.
My company is using an Exchange Server for mailing.
Therefore, the email sent from my website HOST address not match the DOMAIN address and yahoo detected my mail as a spam or some mail service blocked and rejected.
Received-SPF: none (domain of xxxxx.com does not designate permitted
sender hosts)
Php Mailer return the following:
SMTP ERROR: Failed to connect to server: Connection refused (111) SMTP
connect() failed. Mailer Error: SMTP connect() failed.
i would like to prevent spam and able to send email through SMTP authentication, what can i do in this situation,? Thanks.
Run your domain through this, and fix everything that's wrong or missing. In PHPMailer, set $mail->SMTPDebug = 3;, to see why your rejections are happening, and read the other advice in the troubleshooting guide.
You have to configura SPF and DKIM at your server.
You need to configure SMTP credentials at phpmailer.
I am using PHP to send an email with headers like this:
From: danny#mydomain.com
To: dannyfriend#gmail.com
When I check the headers in dannyfriend#gmail.com's (the recipient) email client, I see this header:
Received: from admin by gator1815.hostgator.com with local (Exim 4.69)
(envelope-from <danny#mydomain.com>)
But sometimes the mail goes to dannyfriend's spam folder, because the email is sent via hostgator.com not via mydomain.com as in the sender's email address.
What is really happening here? Why isn't it like this:
Received: from admin by somename.mydomain.com with local (Exim 4.69)
(envelope-from <danny#mydomain.com>)
I have seen an article describing this problem. Can somebody shine some light on what is happening with the SMTP server?
Summary:
Why is the SMTP server not using the message from FROM: header as the envelope-from?
You are actually using anonymous smtp relay. Your ISP provider probably the hostgator in that case is sending email on behalf of the email address that you are using. You may need to qualify your server to be a valid SMTP server that can receive and send emails. If the header does not match the actual from domain, the mail client or the receiving end suspects that it is coming from a fraudulent address and marks it as spam.
I'm trying to send a mail from my own domain server like xyz#mydomain.com in php.
I can successfully send mail using gmail account with pear package. But, sending messages from my own domain fails.
any idea..... how I should send messages from my own domain. I'm getting errors like
authentication failure [SMTP: SMTP server does not support authentication (
code: 250, response: EMU.dnsracks.com Hello [72.18.135.214] TURN SIZE 2097152
ETRN PIPELINING DSN ENHANCEDSTATUSCODES 8bitmime BINARYMIME CHUNKING VRFY OK)]
My mail address is xyz#mydomain.com
Any help would be appreciated.
you don't need to use smtp, just use the phpmailer class.
http://www.askapache.com/php/phpfreaks-eric-rosebrocks-phpmailer-tutorial.html
very easy to use and you'll be sending emails in minutes!
I am getting "SMTP Error: Could not connect to SMTP host." error while trying to send mails using GMAIL SMTP and PHPMailer..
The code is working perfectly in local environment but getting error in live (bluehost) server.. Please help
Bluehost wont allow gmail SMTP connections.
Quoting article:
According to bluehost, you cannot send emails through SMTP connections from web applications hosted on bluehost. They only allow sending through their own SMTP servers.
The work around is that I setup a email account in Bluehost the same as the email I use in Google Apps. I then modified the code in Magento to send out using bluehost’s SMTP servers:
For example:
Outgoing Mail Server: (SSL) boxnumber.bluehost.com (server requires authentication)
Supported Incoming Mail Protocols:
* POP3: port 110
* POP3S (SSL/TLS): port 995
* IMAP: port 143
* IMAPS (SSL/TLS): port 993
Supported Outgoing Mail Protocols:
* SMTP: port 26
* SMTPS (SSL/TLS): port 465
And it works, it sends the email out to the customers with the right email address sent from bluehost’s local SMTP servers, so when customers reply to the email address it will arrive in my google apps mail box.