RE: Sendmail keeping messages for domains its not responsible for .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Donald Tyler wrote:
> Well since no one answered this I am sending it again.
> 
> Maybe I wasn't clear enough. Let me clarify:
> 
> Situation:
> 
> 	I have a webserver that is running sendmail so that PHP can use
>	the mail() function. The sendmail running on the webserver is not
> 	responsible for any domains. (I have no Cw lines in my sendmail.mc)

Class w (Cw) can also be specified in /etc/mail/local-host-names. Note: 

FEATURE(use_cw_file)dnl

listed in /etc/mail/sendmail.mc

> 
> Problem:
> 
> 	When sending mail via php to users who reside within the webservers'
> 	local domain, the server sends the mail to /var/spool/mail/root
> 	instead of sending it to the real mailserver. All emails to other
> 	domains are sent out correctly.

Please post the /var/log/maillog transaction for a php submitted e-mail.
Also, is the actual e-mail being sent to root -or- is it a bounce
notification.

> 
> Question:
> 
> 	Can anyone tell me why the webserver is not forwarding the mail
> 	correctly and how to fix it?

Sendmail uses resovler libs/dns for delivery and the /etc/mail/* files to
determine what is local verus remote. I would check the following:

1) Type: dnsdomainname
2) Type: hostname
3) Check how sendmail interpreted your resolver lib configuration by typing:
  # sendmail -bt -d0.1 </dev/null

Look to be sure the domain/canonical names match what you think they should
be.

4) use the "mail" command to recreate a locally submitted e-mail. Look at
/var/log/maillog and check the relay= flag. Should be selecting the local
mailer, if thats where you want these php mails delivered.

Steve Cowles


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux