LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-03-2003, 09:03 AM   #1
colpaarm
LQ Newbie
 
Registered: Jun 2003
Posts: 22

Rep: Reputation: 15
My genericstable feature in sendmail seems to be ignored


I'm running sendmail on rh linux 8.0. I've got the basics up and running. However, I have a php server on there as well and mail sent from it was setting the from address to apache@machine_name.one_of_our_domains.net. What I want is the from to be set to someuser@one_of_our_other_domains.com. And eventually all mail will run through this and I want the domain for all mail to be set to one_of_our_other_domains.com.

I learned that with the MASQUERADE_AS macro, I can change the domain part. So I was able to get apache@one_of_our_other_domains.com. Then I read up (sendmail book by O'Reilly) and found that I can use the genericstable feature so that one user can be mapped to another in the "from" field for outgoing mail. So here is my setup

divert(-1)
#### basic .mc file for my company
divert(0)
VERSIONID(`$Id$')
OSTYPE(`linux')
define(`confCOPY_ERRORS_TO',`postmaster')
FEATURE(`genericstable')
MAILER(`local')
MAILER(`smtp')
GENERICS_DOMAIN(`one_of_our_domains.net')
GENERICS_DOMAIN(`one_of_our_other_domains.com')
MASQUERADE_AS(`one_of_our_other_domains.com')

Then, I set up my genericstable db as such

apache@machine_name.one_of_our_domains.net newuser@one_of_our_other_domains.com'
apache@one_of_our_other_domains.com' newuser@one_of_our_other_domains.com'

I then ran the makemap hash command and moved the resulting genericstable.db file to /etc/mail/genericstable. I then (of course) restarted sendmail.

The mail is being sent and received just fine. However, although my MASQUERADE_AS macro seems to be working, my genericstable feature seems to be ignored. And I don't see any errors in my mail log. In fact it says it was delievered and returns an ok status, as one would expect considering I get the mail.

Now my question is WHAT AM I DOING WRONG? Sorry! I'm just a little annoyed at sendmail's complexity and am hoping someone can see what I'm doing wrong. Thanks for any help you can give.
 
  


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/qpopper - sendmail.mc FEATURE waffe Linux - General 1 12-07-2010 08:41 PM
gaim feature vexer Linux - Software 7 03-07-2005 11:08 PM
SYSERR(root): hash map "generics": missing map file /etc/mail/genericstable.db? singying304 Linux - Networking 4 02-28-2005 06:49 AM
which distros have this feature.. kurrupt Linux - Distributions 2 07-16-2004 03:20 AM
bug or feature? Gunnyman Linspire/Freespire 5 03-06-2004 03:18 PM

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

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