Unable to send email with sendmail from PHP 5.3 on CentOS VM


 
Thread Tools Search this Thread
Operating Systems Linux Unable to send email with sendmail from PHP 5.3 on CentOS VM
# 1  
Old 02-14-2014
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.

Code:
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.

Last edited by Don Cragun; 02-14-2014 at 08:06 AM.. Reason: Change QUOTE tags to CODE tags.
# 2  
Old 02-14-2014
The destination user cmorton seems to be unknown for crmpicco.co.uk
Code:
...to=<cmorton@crmpicco.co.uk>...User unknown...

# 3  
Old 02-14-2014
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:

IP Address Classification Lookup | Sophos Threat Center | SophosLabs

So it would appear to be a configuration issue with the mail server.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unable to recieve email using sendmail

Hi, Here is my script to send out emails. #!/bin/ksh { print "From: Prod@`hostname`.mycomp.com" print "To: me@mycomp.com" print "MIME-Version: 1.0" print "Content-Type: text/html" print "Subject: Usage Report" print "" print... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. Programming

Unable to send email using Java in Linux

Hi All, We recently moved to Red Hat Enterprise Linux Server release 6.6 from Solaris 10. The existing Java code to send emails in Solaris is public class card_cardMessenger{ /** * Send an e-mail message via the Runtime class * @see Runtime * @return boolean (success or failure of... (1 Reply)
Discussion started by: Meghan2525
1 Replies

3. Shell Programming and Scripting

Shell scripting unable to send the sql query data in table in body of email

I have written a shell script that calls below sql file. It is not sending the query data in table in the body of email. spool table_update.html; SELECT * FROM PROCESS_LOG_STATS where process = 'ActivateSubscription'; spool off; exit; Please use code tags next time for your code and data.... (9 Replies)
Discussion started by: Sharanakumar
9 Replies

4. UNIX for Advanced & Expert Users

Unable to send the email in formatted way

Legends, I have following entries in /tmp/a.txt file GAP Ric XEOJ181477500.W Flag2 5 Sym XEO1418J775-E msg SEQ_NO:159 db:5 diff 154 process msg GAP Ric XEOJ181400.W Flag2 19 Sym XE418J815-E msg SEQ_NO:101 db:5 diff 96 process msg GAP Ric XEOJ18140.W Flag2 18 Sym XEO18J855-E msg SEQ_NO:88... (21 Replies)
Discussion started by: sdosanjh
21 Replies

5. Linux

Sendmail takes too long to start and the host is unable to send emails

Hello All, Sendmail takes too long to start and the host is unable to send emails, below are the steps followed, Please let me know if I'm missing anything, is there a debug mode for mailx? # time service sendmail restart Shutting down sm-client: Shutting... (6 Replies)
Discussion started by: lovesaikrishna
6 Replies

6. Debian

sendmail taking too much time to send a email

Hi , I'm using sendmail command to send a email. To send a email sendmail taking 3minutes to complete the process. Is there any configuration needs to be done in server or another solution is there to resolve this issue. Thanks in Advance. Regards Latika (1 Reply)
Discussion started by: latika
1 Replies

7. Shell Programming and Scripting

Unable to populate subject field of the email while using sendmail

Hi, Can anyone kindly provide some information about how to populate the subject field of the email while using the sendmail utility ? Itried the following command line argument : echo -e "Body of the email" | /usr/lib/sendmail -f from@from.com -t to@to.com -s " Subject of the email" ... (4 Replies)
Discussion started by: sdiptanil
4 Replies

8. Solaris

Unable to send email to the outside world

Hi all, Iam unable to send mail from my unix machine(solaris x86,version 5.10) to the outside world. I can able to access the internet,but not able to send to any yahoo or company email id. Before posting this,i have searched this forum many times,but could not get the results what i... (5 Replies)
Discussion started by: jayaprakash
5 Replies

9. Shell Programming and Scripting

unable to send an email attachment

i know its pretty repeated query, but i need to post it in this new thread coz i need it urgently uuencode /var/tmp/chandra/emaillist.txt emaillist.txt | mail -s "message with encoded attachment" am unable to send the attachment emaillist.txt present in the path /var/tmp/chandra/ Is... (11 Replies)
Discussion started by: cmaroju
11 Replies

10. UNIX for Advanced & Expert Users

Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win)

Hi A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as " usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies
Login or Register to Ask a Question