Local Sendmail Changes Domain Name for Local Submission
I have sendmail Version 8.14.7 installed on Red Hat Enterprise Linux 7. I have two different domain names associated with my single IP adddress. They are listed in the /etc/hosts file and in the /etc/mail/local-host-names file. Incoming mail from the Internet to different @domain.com names gets delivered properly through the use of the /etc/virtusertable however, mail submitted locally on the server via command line or via PHP scripts is having a problem. Mail submitted this way to domain2.com is always being changed to domain1.com and not getting delivered. I've read that this is controlled by submit.mc, but I just can't seem to configure to accept mail for either domain, just domain1.com. Here's an example from the mail log:
Code:
Oct 3 14:13:28 HOSTNAME sendmail[32212]: x93LDRK0032212: to=user12@domain2.org, ctladdr=rsvp (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30225, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (x93LDRlc032213 Message accepted for delivery) Code:
divert(-1) Would appreciate any help anyone can provide. Thanks, -Scott |
I'm on 8.15.2. I don't know that an upper version will make a difference. The source includes a default submit.mc, which is what I use. You understand that submit.mc is source for submit.cf, the file that sendmail consults? If you've changed submit.mc but haven't built and installed a new submit.cf with it you haven't done anything.
The source has extensive documentation in cf/README. Probably all answers are there, if not always easy to understand. sendmail has a forum. I've never gotten a useful answer there but it appears that others have. https://groups.google.com/forum/?fro....mail.sendmail |
All times are GMT -5. The time now is 01:29 PM. |