LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-20-2009, 05:18 PM   #1
huckinstein
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
sendmail help


First of all. THANK YOU for any help you might be able to provide.

I have a really wigged out sendmail configuration.
I work on a ship. The ship has a domain name of ship.domain.xxx

Our normal domain is domain.xxx (as an example).

What we have now is a sendmail box that is masquerading as the ship. All mail comes into the sendmail box and gets queued. We then have a perl script that harvests everything in the queue and puts it into a ZIP file in a directory that is accessible to a modem system over a satellite.

Three times a day the ship calls up over the satellite and does a transfer where it grabs the bundles our server has been making and it puts bundles that have been made on the ship in a queue on the server in the office.

Then every 8 minutes our perl script run and un-zips the bundles and puts them in the appropriate sendmail queues. The sendmail does its thing and people get mail.

make sense??

All this works and has worked for years.

Here is the problem.
The ship is gonna get moth-balled for awhile and I need to configure sendmail to bounce all but a few accounts. Those few accounts that do not get bounced need to be aliased to other accounts on another server.

I am not sure how to do this for various reasons. The first and most obvious (to me) is that my sendmail server here in the office is just a relay and has NO idea what accounts are valid at the final destination and what are not. (so how would it know what to bounce anyway)

I think I should be able to set up some kind of table that contains the names things I want forwarded and then tell it to bounce everything else. But I am not sure what table that would be.

Anyway.
Any ideas will be appreciated. I will be here reading the book for many days I expect.

Thanks
 
Old 04-21-2009, 07:43 AM   #2
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 241

Rep: Reputation: 51
Hi,

The local-host-names contain your local domain name what is not forwarded anywhere else. Eg.: local mail communication and internet communication on the same box.

The mailertable contain the forwarded domains. Eg.: The emails come from internet into linux box then filtered spams then go to local Exchange server or another local sendmail box.

The virtusertable contain the multiple domain / multiple user configuration. I think this is for you.

Eg.:

chris@linux.com chris
cnegus@linux.com chris
info@linux.com info-linux
info@mybox.com info-mybox

@domain1.com domain1
@domain2.com %1@linux.com

Or you can forward with .forward file too.

If you use the .forward file you have to put this into sendmail.mc file.:

confDONT_BLAME_SENDMAIL

Or another possibility to forward mails to different account is the aliases file.

Eg.:

info-list: chris, tweeks, myadminbox@mydomain.com

It means the info-list@domain.com will be delivered to all that accounts. (the domain.com is in the local-host-name file)

I hope it helped.

Laz
 
Old 04-21-2009, 08:26 AM   #3
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
You can also look at establishing a ./forward file in each users home directory. Sendmail will see the file and forward it to the email address that you list in there. I have several recipients that get mail at my server but don't pop their mail from here. So I just set them up the ./forward file and sendmail sends it out. This is all depending on the aliases file too. Make sure and change that appropriately.

Hope this helps!
 
Old 04-21-2009, 10:46 AM   #4
huckinstein
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you both for your time and your ideas.
I think I need to pursue the virtusertable thing.

huckinstein
 
Old 04-21-2009, 01:02 PM   #5
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 241

Rep: Reputation: 51
You are welcome mate!

I hope it helped.

Laz
 
  


Reply

Tags
sendmail


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 config questions + Sendmail not reflecting changes to access db wbuik Linux - Networking 2 03-26-2009 05:02 AM
Sendmail ignores aliases with sendmail daemon stopped phavn Solaris / OpenSolaris 1 12-01-2008 02:50 PM
m4 sendmail.mc > sendmail.cf generate unwanted result on OpenSolaris johncsl82 Solaris / OpenSolaris 1 09-08-2008 11:25 PM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 03:57 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM


All times are GMT -5. The time now is 04:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration