LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail configuration question (https://www.linuxquestions.org/questions/linux-server-73/sendmail-configuration-question-875216/)

ScottDr 04-15-2011 12:28 PM

Sendmail configuration question
 
We are running Fedora 14 at our remote site to process outgoing mail from our webserver's and need to process bounce backs and ndr's. Here is the problem:

The web server sends mail through the Fedora server as a sender from our corporate mail domain. We could list corporate mail domain in our local-host-names table and receive the bounce backs on the Fedora server. Great. That is what we want. All bounce backs to be caught in a catch all box at the remote site Fedora server.

The problem is the web server also sends to email addresses at our corporate mail domain (our public domain) from the same sendmail server. We need those emails to get routed to our corporate exchange server as opposed to staying on the Fedora server. Right now we get user does not exist etc because it is looking for the user on the local server.

We need to be able to receive bounce backs from our corporate domain on the Fedora box yet also send to our corporate domain destined for the exchange server at HQ. Does anyone have any ideas how this can be configured?

Thank you in advance.

bathory 04-16-2011 03:26 AM

Hi,

You can use virtusertable for this.
Edit /etc/mail/virtusertable and use:
Code:

www@domain.com www
@domain.com  %1@[x.x.x.x]

where www is the user that sends mail through the web server and you want him to receive mail locally and x.x.x.x is the IP of the corporate exchange server.
After editing /etc/mail/virtusertable don't forget to run:
Code:

makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
Regards

ScottDr 04-19-2011 02:50 PM

Thanks! That got us closer - the sendmail server is now talking to the Exchange server. The problem now is that the sendmail server is reporting "Queued mail for delivery" on any mail sent to Exchange. Exchange is reporting "A non-delivery report with a status code of 5.3.5 was generated for recipient rfc822;USERNAMEw@[X.X.X.X] (Message-ID <4dade4ce.u/LEE+k9ODY6CpjQ%SENDER@SENDER.com>).
Causes: A looping condition was detected. (The server is configured to route mail back to itself). If you have multiple SMTP Virtual Servers configured on your Exchange server, make sure they are defined by a unique incoming port and that the outgoing SMTP port configuration is valid to avoid looping between local virtual servers.
Solution: Check the configuration of the virtual serverĘs connectors for loops and ensure each virtual server is defined by a unique incoming port.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."

Continuing to investigate....

bathory 04-19-2011 03:49 PM

Hi,

I don't know anything about exchange, but I guess you need to configure it to accept mail for USERNAMEw@[X.X.X.X] locally and not try to relay it back to sendmail.

ScottDr 04-20-2011 08:56 AM

That makes two of us! :-) Thanks for the help.


All times are GMT -5. The time now is 03:52 AM.