|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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!" |
|
#2
|
||||
|
||||
|
Quote:
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. |
|
#3
|
||||
|
||||
|
Quote:
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. |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
||||
|
||||
|
Quote:
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Mail Server Help > Sendmail problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|