LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-16-2004, 05:45 PM   #1
kloppster
LQ Newbie
 
Registered: Jul 2004
Posts: 22

Rep: Reputation: 15
Sendmail relaying...


We have our webserver and a seperate server to handle our mail. However since the domain of our webserver is the same when we try to send mail (through a php program or from the command line) from our webserver it tries to deliver it locally rather than to our mail server. I have tried defining FEATURE(`relay_based_on_MX') but that hasn't seemed to have any effect. Maybe I haven't compiled the sendmail.mc correctly... Anyway are there any ideas on getting this mail to relay/forward to the mailserver?
 
Old 07-16-2004, 08:13 PM   #2
shelby
Member
 
Registered: Nov 2002
Location: Rio Rancho, NM
Distribution: RHEL, CentOS & Ubuntu
Posts: 90

Rep: Reputation: 15
I use webmin (www.webmin.com) to configure and manage Sendmail. There is a section that says ignore mx record. Hope that helps.
 
Old 07-19-2004, 12:24 PM   #3
kloppster
LQ Newbie
 
Registered: Jul 2004
Posts: 22

Original Poster
Rep: Reputation: 15
After several days of trying to debug this I still do not know why it still sends the mail locally instead of sending it to our mail server to deliver... Any other ideas?
 
Old 07-19-2004, 12:49 PM   #4
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
kloppster

This is just a wild guess but have you set the IP of your webserver to relay in
/etc/mail/access of your mailserver

If you modify this file you must run 'make' in the mail directory to generate
/etc/mail/access.db

Obviously restart Sendmail

This is my file these are the IP's of all my local machines

# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
192.168.0.4 RELAY
192.168.0.2 RELAY
192.168.0.7 RELAY
192.168.0.3 RELAY

Probably way off the mark

Pete
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sendmail Relaying R4z0r Linux - Networking 2 10-03-2004 02:15 PM
relaying in sendmail spikes57 Linux - Networking 6 02-27-2004 10:44 AM
Sendmail relaying SchoolITguy Linux - Networking 0 10-18-2002 06:17 PM
sendmail relaying atin Linux - Software 1 10-01-2002 10:21 AM
Sendmail 8.11 relaying?? magyartoth Linux - General 3 04-29-2002 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:18 AM.

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