LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-15-2004, 08:21 PM   #1
verbal
Member
 
Registered: Jul 2002
Location: New York
Distribution: Red Hat 7.2, SuSE 7.3
Posts: 60

Rep: Reputation: 15
Sendmail configuration with DynDns... need advice


Hey there...

Hope someone out there might have a bit more knowledge in this area than I do.

I have the following setup:

I am running sendmail on a red hat 9 server. The server is one of three boxes on a private LAN. I have a fully qualified domain (devbox.us) which is managed via DynDns (as a custom DNS); my router keeps this IP up-to-date. I have also added an appropiate MX record to my server in my DynDns account.

I am able to receive mail from anyone, and I am able to send mail to most. Unfortunatley, any ISP on the SPAM-wagon rejects mail sent from my host because the headers report the mail as being sent from localhost.localdomain instead of from devbox.us

I have been reading post after post and two different books, the verdict seems to be that sendmail determines the host for itself and there is no way to tell it what the hostname is?? is this true or am I missing something?

I have set the masquerading features in sendmail, and have added the appropriate entry in the local-host-names file (as well as the access.db, obviously since I can relay).

Under the above configuration, is there anyway to tell sendmail to use my legitimate domain?

Thanks in advance for any help

Dave
 
Old 04-16-2004, 12:00 AM   #2
mgatny
Member
 
Registered: Mar 2004
Posts: 41

Rep: Reputation: 15
Did you set the masquerade option? In sendmail.cf, you would do this:
DMdevbox.us

Of course, you should try to keep your sendmail.mc authoritative, and generate sendmail.cf from it:
MASQUERADE_AS(`devbox.us')dnl
FEATURE(`masquerade_envelope')dnl

You generate sendmail.cf from sendmail.mc thusly:
m4 sendmail.mc > sendmail.cf

Of course, after those changes you need to restart sendmail, e.g.:
/etc/init.d/sendmail restart
 
Old 04-16-2004, 07:59 AM   #3
verbal
Member
 
Registered: Jul 2002
Location: New York
Distribution: Red Hat 7.2, SuSE 7.3
Posts: 60

Original Poster
Rep: Reputation: 15
thanks

Hey there...

I have previously done all that you have suggested; this is what I meant by "masquerade options", apologies for the confusion.

however, I DO create the cf a bit differently: build -C /etc/mail sendmail.cf
This builds the cf out of the mc, is this different than the m4 command that you have outlined?

I think that my issue has something to do with the fact that my server has a private space class-c IP. This works well enough taking in traffic because the box serves as the DMZ for the LAN, but I think this is messing with sendmail... I suspect that if I had a static IP rather than going through this game with the dynamic one that this wouldn't be an issue.

thanks for your time

Dave


Quote:
Originally posted by mgatny
Did you set the masquerade option? In sendmail.cf, you would do this:
DMdevbox.us

Of course, you should try to keep your sendmail.mc authoritative, and generate sendmail.cf from it:
MASQUERADE_AS(`devbox.us')dnl
FEATURE(`masquerade_envelope')dnl

You generate sendmail.cf from sendmail.mc thusly:
m4 sendmail.mc > sendmail.cf

Of course, after those changes you need to restart sendmail, e.g.:
/etc/init.d/sendmail restart
 
Old 04-16-2004, 12:18 PM   #4
zymurgist
Member
 
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109

Rep: Reputation: 15
I had this problem until I decided to relay through my ISP. I added:
define(`SMART_HOST',`isp.mail.host')dnl
 
Old 04-16-2004, 06:11 PM   #5
verbal
Member
 
Registered: Jul 2002
Location: New York
Distribution: Red Hat 7.2, SuSE 7.3
Posts: 60

Original Poster
Rep: Reputation: 15
Hi...

Thanks for the input!

Quote:
Originally posted by zymurgist
I had this problem until I decided to relay through my ISP. I added:
define(`SMART_HOST',`isp.mail.host')dnl

unfortunately, this doesn't seem to make any difference at all...should I be disabling some setting when I enable SMART_HOST?

Thanks

Dave
 
  


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
seeking advice on best mail server configuration clau_bolson Linux - Server 5 03-05-2007 11:59 AM
Need Advice; 3 NIC's; High Volume Mail Server; Sendmail; Iptables? Killer Bassist Linux - Networking 3 12-04-2005 11:40 PM
broken NFS mount need configuration advice bobbens Debian 6 10-29-2005 04:22 PM
need advice laptop network and wireless configuration Nurdin Debian 1 01-22-2005 04:57 AM
sendmail, dns & dyndns questions synfield Linux - General 3 04-26-2003 04:23 PM

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

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