LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2003, 10:12 PM   #1
slack66
Member
 
Registered: Jul 2003
Location: manila
Distribution: slackware 8 to 9
Posts: 199

Rep: Reputation: 30
sendmail domain problem


i post this question last week in this forum.

hi... i just setup a new mail server running sendmail.
my HOSTNAME is mail.xxx.com
my problem is went i send an email to my client it automatically send my return address to paul@mail.xxx.com. i want it paul@xxx.com without the "mail" "HOSTNAME" and i want my remote client to email me at paul@xxx.com not paul@mail.xxx.com.
what configuration file will i edit to relay my paul@xxx.com to paul@mail.xxx.com.... after a hour
then someone reply to me that I need to add ff:

MASQUERADE_AS(xxx.com)

In your "sendmail.mc" file...
(don't forget to write your new sendmail configuration...)
example: m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

Make sure that you put all your aliases of you machine in you "local-host-names" file...

for example...

xxx.com (to accept mail sent to paul@xxx.com)
mail.xxx.com
localhost

You also need a mx-record in you dns to be able to send mail to name@xxx.com...

example:

xxx.com IN MX 5 mail.xxx.com

and boom it works! i can resent email without the HOSTNAME "mail" but another problem occur.... my mail server reject incoming mail without a HOSTNAME ex. it must be "mail.xxx.com" to accept it and reject if ex. "xxx.com" what seem to be the problem. this is the error that my remote client received went the mail they sent to me bounce back:

from in02-fes1.whowhere.com [204.xxx.xxx.xxx] ----- The following addresses had permanent fatal errors ----- <paul@xxx.com> ----- Transcript of session follows ----- 554 5.0.0 MX list for xxx.com. points back to mail.xxx.com 554 5.3.5 Local configuration error

can anyone translate to me what seem to be happining. thk in advance:

Last edited by slack66; 08-15-2003 at 10:19 PM.
 
Old 08-17-2003, 04:10 PM   #2
MacKtheHacK
Member
 
Registered: Jul 2003
Location: Boston, MA, USA
Distribution: RedHat, SuSE, Gentoo, Slackware, Mandrake ...
Posts: 111

Rep: Reputation: 15
I think it's that extra MX record you added to the DNS. It looks like it's causing a DNS loop of some kind. If your xxx.com domain name refers to the same IP address as mail.xxx.com, you don't need that MX record at all. Try removing it and see if that works.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail sending as host.domain.com, i want it to be from just domain.com. PlatinumRik Linux - Software 5 10-07-2004 04:32 PM
HELP! Sendmail Config for xxx.domain.com where xxx is not domain, but want act like 1 rld1025 Linux - Newbie 2 09-11-2003 07:53 AM
domain problem in sendmail klintonray Linux - Software 1 07-28-2003 12:31 AM
sendmail domain name problem terek Linux - Newbie 3 06-16-2002 02:32 PM
Sendmail host/domain problem. Tarantismic Yak Linux - General 2 05-08-2001 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:22 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