LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-15-2011, 12:28 PM   #1
ScottDr
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
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.
 
Old 04-16-2011, 03:26 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
1 members found this post helpful.
Old 04-19-2011, 02:50 PM   #3
ScottDr
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
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....
 
Old 04-19-2011, 03:49 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.
 
Old 04-20-2011, 08:56 AM   #5
ScottDr
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
That makes two of us! :-) Thanks for the help.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Sendmail Configuration Question Stroik52 Linux - Server 4 07-16-2010 01:09 AM
Sendmail configuration question Lenard Spencer Linux - Server 3 03-16-2009 05:26 PM
Sendmail configuration question.Mdk10.1 akihandyman Mandriva 3 12-23-2004 06:22 PM
Sendmail configuration question J_Szucs Linux - Software 0 08-09-2003 08:31 PM
A simple Sendmail configuration question J_Szucs Linux - Newbie 2 11-12-2002 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration