Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 2nd, 2009, 01:36 PM
Hammer65's Avatar
Hammer65 Hammer65 is offline
Web Developer/Musician
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Nov 2004
Location: Lincoln Nebraska
Posts: 2,258 Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 19 h 34 sec
Reputation Power: 832
Send a message via AIM to Hammer65
Sendmail problems

I am trying to get a CentOS install on a VMWare instance to send mail through PHP. When I send the mail message I get an entry in the maillog that looks like this.

Code:
to=<validemail@ourserver.com>, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=61147, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n22IQLZQ006109 Message accepted for delivery)


Mail is not received. What should I be looking for next?
__________________
"Strange women lying in ponds distributing swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony! Well, but you can't expect to wield supreme executive power just 'cause some watery tart threw a sword at you! I mean, if I went 'round saying I was an emperor just because some moistened bint had lobbed a scimitar at me, they'd put me away!"

Reply With Quote
  #2  
Old March 2nd, 2009, 05:50 PM
hiker's Avatar
hiker hiker is offline
They're coming to take me away
Click here for more information
 
Join Date: Jan 2005
Location: Florida
Posts: 4,149 hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)  Folding Points: 33832 Folding Title: Starter FolderFolding Points: 33832 Folding Title: Starter Folder
Time spent in forums: 2 Months 2 Weeks 8 h 53 m 20 sec
Reputation Power: 3178
Quote:
Originally Posted by Hammer65
I am trying to get a CentOS install on a VMWare instance to send mail through PHP. When I send the mail message I get an entry in the maillog that looks like this.

Code:
to=<validemail@ourserver.com>, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=61147, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n22IQLZQ006109 Message accepted for delivery)


Mail is not received. What should I be looking for next?


Look for a line in your sendmail configuration file that relates to SMTP. Post that line. If you can't find it, post your entire sendmail config file.

Reply With Quote
  #3  
Old June 8th, 2009, 10:33 AM
Hammer65's Avatar
Hammer65 Hammer65 is offline
Web Developer/Musician
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Nov 2004
Location: Lincoln Nebraska
Posts: 2,258 Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 19 h 34 sec
Reputation Power: 832
Send a message via AIM to Hammer65
Quote:
Originally Posted by hiker
Look for a line in your sendmail configuration file that relates to SMTP. Post that line. If you can't find it, post your entire sendmail config file.


Sorry it took so long to respond, but the original problem soon became moot when the client made a change in their deployment plans. I have the same problem now, again with CentOS 5.x, where /var/log/maillog shows the messages being sent from PHP with the message "message accepted for delivery" and yet no mail regardless of from address and other careful header voodoo, is ever received. The SMTP portion of sendmail.cf is below.

Code:
#####################################
###   SMTP Mailer specification   ###
#####################################

#####  $Id: smtp.m4,v 8.64 2001/04/03 01:52:54 gshapiro Exp $  #####

#
#  common sender and masquerading recipient rewriting
#
SMasqSMTP
R$* < @ $* > $*         $@ $1 < @ $2 > $3               already fully qualified
R$+                     $@ $1 < @ *LOCAL* >             add local qualification

#
#  convert pseudo-domain addresses to real domain addresses
#
SPseudoToReal

# pass <route-addr>s through
R< @ $+ > $*            $@ < @ $1 > $2                  resolve <route-addr>

# output fake domains as user%fake@relay

# do UUCP heuristics; note that these are shared with UUCP mailers
R$+ < @ $+ .UUCP. >     $: < $2 ! > $1                  convert to UUCP form
R$+ < @ $* > $*         $@ $1 < @ $2 > $3               not UUCP form

# leave these in .UUCP form to avoid further tampering
R< $&h ! > $- ! $+      $@ $2 < @ $1 .UUCP. >
R< $&h ! > $-.$+ ! $+   $@ $3 < @ $1.$2 >
R< $&h ! > $+           $@ $1 < @ $&h .UUCP. >
R< $+ ! > $+            $: $1 ! $2 < @ $Y >             use UUCP_RELAY
R$+ < @ $~[ $* : $+ >   $@ $1 < @ $4 >                  strip mailer: part
R$+ < @ >               $: $1 < @ *LOCAL* >             if no UUCP_RELAY


#
#  envelope sender rewriting
#
SEnvFromSMTP
R$+                     $: $>PseudoToReal $1            sender/recipient common
R$* :; <@>              $@                              list:; special case
R$*                     $: $>MasqSMTP $1                qualify unqual'ed names
R$+                     $: $>MasqEnv $1                 do masquerading


#
#  envelope recipient rewriting --
#  also header recipient if not masquerading recipients
#
SEnvToSMTP
R$+                     $: $>PseudoToReal $1            sender/recipient common
R$+                     $: $>MasqSMTP $1                qualify unqual'ed names
R$* < @ *LOCAL* > $*    $: $1 < @ $j . > $2

#
#  header sender and masquerading header recipient rewriting
#
SHdrFromSMTP
R$+                     $: $>PseudoToReal $1            sender/recipient common
R:; <@>                 $@                              list:; special case

# do special header rewriting
R$* <@> $*              $@ $1 <@> $2                    pass null host through
R< @ $* > $*            $@ < @ $1 > $2                  pass route-addr through
R$*                     $: $>MasqSMTP $1                qualify unqual'ed names
R$+                     $: $>MasqHdr $1                 do masquerading


#
#  relay mailer header masquerading recipient rewriting
#
SMasqRelay
R$+                     $: $>MasqSMTP $1
R$+                     $: $>MasqHdr $1

Msmtp,          P=[IPC], F=mDFMuX, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\                     n, L=990,
                T=DNS/RFC822/SMTP,
                A=TCP $h
Mesmtp,         P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r                     \n, L=990,
                T=DNS/RFC822/SMTP,
                A=TCP $h
Msmtp8,         P=[IPC], F=mDFMuX8, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r                     \n, L=990,
                T=DNS/RFC822/SMTP,
                A=TCP $h
Mdsmtp,         P=[IPC], F=mDFMuXa%, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\                     r\n, L=990,
                T=DNS/RFC822/SMTP,
                A=TCP $h
Mrelay,         P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, E=\r                     \n, L=2040,
                T=DNS/RFC822/SMTP,
                A=TCP $h


Numerous other servers we have set up with Fedora or with Cent but through cpenel send mail without issue right after install, but for some reason Cent misses a config step that the others do not.

Given that PHP reports success through the mail function, and sendmail appears to be receiving the messages without error, I need to know where to go from here to solve the problem.

Reply With Quote
  #4  
Old June 8th, 2009, 09:16 PM
hiker's Avatar
hiker hiker is offline
They're coming to take me away
Click here for more information
 
Join Date: Jan 2005
Location: Florida
Posts: 4,149 hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)hiker User rank is General 33rd Grade (Above 100000 Reputation Level)  Folding Points: 33832 Folding Title: Starter FolderFolding Points: 33832 Folding Title: Starter Folder
Time spent in forums: 2 Months 2 Weeks 8 h 53 m 20 sec
Reputation Power: 3178
Was wondering why ya never responded back...

Actually I need the contents of the sendmail.mc file. Should be in the same directory as the .cf.

Reply With Quote
  #5  
Old June 8th, 2009, 09:24 PM
Hammer65's Avatar
Hammer65 Hammer65 is offline
Web Developer/Musician
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Nov 2004
Location: Lincoln Nebraska
Posts: 2,258 Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level)Hammer65 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 19 h 34 sec
Reputation Power: 832
Send a message via AIM to Hammer65
Quote:
Originally Posted by hiker
Was wondering why ya never responded back...

Actually I need the contents of the sendmail.mc file. Should be in the same directory as the .cf.


Actually I found it in .mc and with a little help from a post in the CentOS forum. There was a line that specified port=smtp host=127.0.0.1 or something similar (I don't have the info at home). I just needed to comment that line out, and all email was delivered that had been sent since the machine went online. Curious that I have never had that problem with anything other than CentOS. I now have a better understanding of sendmail configuration. Thank you for your assistance, you directed me to the config files in the first place.
Comments on this post
hiker agrees: Yep.. the 127.0.0.1 keeps everything on the server... Some distros don't have that line (or have an
IP other than loopback) which is why you may not have previously had this problem.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Sendmail problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
Stay green...Green IT