LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-17-2004, 02:24 PM   #1
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
sendmail problems


I have a domain name tinymaze.com. I also have a fake domain tinymaze2.com for my LAN. On my LAN I have a sendmail server. I forward all port 25 traffic heading to tinymaze.com to my sendmail server. Incoming mail works fine. My problem is that mail.tinymaze2.com (the sendmail server on my LAN) tells mail servers that it's <whatever>.tinymaze2.com instead of tinymaze.com.

I need to know how to get sendmail to authenticate as tinymaze.com instead of thinker.tinymaze2.com. The reason is, some mail servers will try doing a lookup on thinker.tinymaze2.com and reject it since it's a bogus domain.

Thanks in advance for any help!

Last edited by itsme86; 10-18-2004 at 03:32 PM.
 
Old 10-22-2004, 06:17 PM   #2
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
The feauture you use for this is 'masquerading'


in your sendmail.mc you add these entries and make a new sendmail.cf
file probably (m4 < sendmail.mc > /etc/mail/sendmail.cf )
FEATURE(`masquerade_envelope') dnl
FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl

then you need 2 files
/etc/mail/generic-domains put here 'tinymaze2.com' this
way sendmail knows on what domain to operate


in /etc/mail/genericstable you make a table of this this
username publicname
===============
myUser myUser@tinymaze.com


makemap hash genericstable < genericstable
will give you a genericstable.db that will be used
by sendmail. Maybe there are shorter ways, but here you can
give users even an email address outside your domain.

more info on:
http://www.sendmail.org/m4/masquerading_relaying.html
 
  


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
sendmail problems stouffej Red Hat 4 02-04-2005 10:39 PM
Problems with sendmail... @ngelot Linux - Software 4 11-17-2004 03:06 AM
sendmail problems bdoster Linux - Networking 2 10-29-2004 01:24 PM
problems with sendmail baczer Slackware 0 07-23-2004 01:20 PM
problems with sendmail JLDixon Linux - Software 8 03-13-2004 01:57 PM

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

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