Outbound Maillist in Sendmail: confusion
So we use sendmail as a relay host to get mail out onto the internet from a location that should not receive mail. Email is only needed for alerts, essentially. All of our servers use this one sendmail server as a smarthost relay. My hope is to get it set up so that if any mail is relayed through this sendmail server to group-list@email.com that is will actually go to the aliased addresses in the include file. :include:/etc/mail/group-list. So far this has not worked. When I try to email group-list@email.com I get a "User unknown" message. From what I am reading this should work with the configuration below. Am I not understanding how sendmail is thinking about this? In my mind I am aliasing all mail to group-list to the list of emails in /etc/mail/group-list, and so they should be the emails that the message actually is delivered too. Any sendmail people that can help me out? Thanks for any help.
These are my additions to /etc/aliases Quote:
This is what I seen in /var/log/maillog when I try to send a message to group-list@email.com using the sendmail server as a smarthost relay from another server Quote:
return to sender I have been working off of a lot of pages trying to get this to work, but one of the main ones is: http://www.cs.bgu.ac.il/~arik/usail/mail/lists/ |
Quote:
|
Quote:
Quote:
[original mail host]->(smart relay)->[sendmail server]->[destination mail server] I did some traffic sniffing and looking up of DSN messages. I think what is happening is that my sendmail server is attempting to deliver too group-list at the destination domain, and that mail server is responding with a message saying there is no such user and so it fails. What I want to happen is that anything to group-list@awesome.com gets translated on MY server into the email addresses in the alias list. I'm not sure if this is one of the intentions of the alias feature or not. Thank you for your reply, again sorry for the confusion on my typo. Anyone know how I can translate that from address before it leaves my sendmail server? |
Well, I kind of solved this for myself. I will detail my solution here in case anyone has the same misconceptions as me.
What I was trying: I wanted to send an email to group-list@email.com and have it aliased as it was relayed off my server. This did not work as my sendmail instance kept trying to deliver to group-list@email.com directly and that user does not exist. No idea why I thought this was a good idea, it has been a long couple of weeks. What Does Work: To do an email distribution list in sendmail. First point, send the original email to a "user" on the sendmail server itself. I set up a dummy user using: useradd -M -s /bin/false group-list. Then I set up my /etc/aliases file: Quote:
such as #This is an email distrib-list for group-list bob@email.com sue@email.com The cool thing about this is you can put the group-list file wherever you want and make it so people other than root can add names and remove names from their own lists, and you don't need to restart sendmail or remake the aliases db to do it. (remake aliases db by running 'newaliases') |
All times are GMT -5. The time now is 01:59 AM. |