LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2014, 04:54 AM   #1
crmpicco
Member
 
Registered: Aug 2006
Location: Mauchline, Scotland
Distribution: CentOS 5.6
Posts: 43

Rep: Reputation: 15
Unable to send email with sendmail from PHP 5.3 on CentOS VM


I have a longstanding issue on my CentOS 5.6 VM where I am unable to send email from my PHP application.

This is the last bunch of lines from my /var/log/maillog file.
Quote:
Feb 14 10:29:16 dev53 sendmail[4637]: s1EATEEo004637: Authentication-Warning: www.craig.dev-crmpicco.lan: apache set sender to client.care@crmpicco.co.uk using -f
Feb 14 10:29:16 dev53 sendmail[4637]: s1EATEEo004637: from=client.care@crmpicco.co.uk, size=11017, class=0, nrcpts=0, msgid=<1392373753.d4a897919a124958e699170b2b1dc8f2@PHPMAILSERVER>, relay=apache@localhost
Feb 14 10:29:16 dev53 sendmail[5119]: s1EATG5R005119: Authentication-Warning: www.craig.dev-crmpicco.lan: apache set sender to client.care@crmpicco.co.uk using -f
Feb 14 10:29:16 dev53 sendmail[5119]: s1EATG5R005119: from=client.care@crmpicco.co.uk, size=9507, class=0, nrcpts=1, msgid=<1392373756.8e5e15c4e6d09c8333a17843461041a9@PHPMAILSERVER>, relay=apache@localhost
Feb 14 10:29:16 dev53 sendmail[5135]: s1EATGpY005135: from=<client.care@crmpicco.co.uk>, size=9684, class=0, nrcpts=1, msgid=<1392373756.8e5e15c4e6d09c8333a17843461041a9@PHPMAILSERVER>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Feb 14 10:29:16 dev53 sendmail[5119]: s1EATG5R005119: to=cmorton@crmpicco.co.uk, ctladdr=client.care@crmpicco.co.uk (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=39507, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (s1EATGpY005135 Message accepted for delivery)
Feb 14 10:29:18 dev53 sendmail[5199]: s1EATGpY005135: to=<cmorton@crmpicco.co.uk>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=129684, relay=smx1.crmpiccov3.co.uk. [217.158.143.122], dsn=5.7.1, stat=User unknown
Feb 14 10:29:18 dev53 sendmail[5199]: s1EATGpY005135: s1EATIpY005199: DSN: User unknown
Feb 14 10:29:18 dev53 sendmail[5199]: s1EATIpY005199: to=<client.care@crmpicco.co.uk>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=40917, relay=smx1.crmpiccov3.co.uk. [217.158.143.122], dsn=5.7.1, stat=User unknown
Feb 14 10:29:18 dev53 sendmail[5199]: s1EATIpY005199: s1EATIpZ005199: return to sender: User unknown
Feb 14 10:29:18 dev53 sendmail[5199]: s1EATIpZ005199: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=41941, dsn=2.0.0, stat=Sent
I know for certain that the issue is not with the PHP code as the exact same code works in the office, however when WFH (on a seperate VM with the same code) I am unable to send emails.

I am trying to establish if this is because of my sendmail setup, IP whitelisting at the mail server end or hosts file setup or anything like that?

Note: I have masked the true name of the domain for security reasons for this post.
 
Old 02-14-2014, 07:42 AM   #2
crmpicco
Member
 
Registered: Aug 2006
Location: Mauchline, Scotland
Distribution: CentOS 5.6
Posts: 43

Original Poster
Rep: Reputation: 15
It turns out this is due to Spam Filtering at the mail server end:

When I look at the messages sitting in my mail log that have been returned I get a link to this:

http://www.sophos.com/en-us/threat-c...=78.151.118.13

So it would appear to be a configuration issue with the mail server.
 
  


Reply

Tags
centos, email, php, sendmail



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
[SOLVED] Unable to send email to-from localhost in Sendmail Rohit_4739 Linux - Server 6 06-27-2012 11:28 PM
Sendmail: unable to send and recive email in intranet nikhilgeo Red Hat 3 06-22-2011 12:30 AM
Sendmail - mail server rejected email and unable to send ghostplanet Linux - Server 4 02-24-2010 10:10 PM
How do I secure sendmail to only send email from php on localhost jmille34 Linux - Security 1 08-22-2006 07:51 PM
Unable to send email from Sendmail rridler Linux - Software 26 07-13-2006 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 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
Open Source Consulting | Domain Registration