Solved

Sendmail multiple routes

Posted on 2004-03-25
8
355 Views
Last Modified: 2010-08-05
Inbound mail is normally routed through a Sendmail box to the office email server.  
I want to route email to me from a specific domain to both the office email server and to my home email server.  
How can I do that?
0
Comment
Question by:kyiu
  • 3
  • 3
  • 2
8 Comments
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10685663
Is it just for one or two users? The easiest way is to put a .forward file in the home directory of the user with the addresses of the remote users you want the mail sent to.
0
 

Author Comment

by:kyiu
ID: 10686690
I don't understand the ".forward" file.  The idea is to get to my client's email when I'm not at the office.  I want to do it at the sendmail box.
0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10687070
Say your name on the linux box is paul. If you put a file called .forward in /home/paul on the linux box which contains the line paul@myhomeserver.com, any mail which comes to your linux box for paul will automatically be sent to the email address paul@myhomeserver.com. Its an inbuilt part of sendmail.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10689161
Depending on how the Sendmail relay is configured it may not be possible to do this on the relay. If the relay is using relay-domains or another method that relays everthing, as opposed to using explicit forwards via an aliases or virtusertable map you won't be able to do the forward on the Sendmail relay. In that case the "Cc'ing" of mail will have to be done on the "office email server".
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

Author Comment

by:kyiu
ID: 10697340
I am doing releying already with virtusertable map.  There is no problem at all.  Expect now, I want to relay to two different place.  

I have no user account on the linux box.  The sendmail is just a email front-end.  It's used to protect the Exchange server.   No .forward file exist.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10698820
Okay, this can be done since you are doing explicity relays. Since the virtusetable map can only accept a single target the solution is to create an alias for the distribution, perhaps like:

dual-delivery:       addr@office.tld, addr@isp.tld

and then make that alias the target of the virtusertable record, like:

me@domain.tld     dual-delivery

Since virtusertable is expanded first mail to me@domain.tld will get mapped to dual-delivery. Then the alias expansion is done resulting in the message being sent to each address in the list.
0
 

Author Comment

by:kyiu
ID: 10818950
Jlevie, I've just had tested the aliases approach.  It works, but on all the mails destine to my office.  I'm only interested on a specific sender.  Can I filter the sender?  I don't want to see hundreds of emails send to my personal inbox.

Thanks
0
 
LVL 40

Accepted Solution

by:
jlevie earned 150 total points
ID: 10819095
> Can I filter the sender?

Not at an Mail Transport Agent (MTA) level. Aliases and virtuser table only operate on the recipient of a message and there are no provisions to filter based on sender. That sort of filtering is the responsibilty of a Mail User Agent (MUA) like Netscape, Mozilla, Evolution , Outlook, etc.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
LDAP search filter 5 77
Cpanel and Mail logs 1 46
linux  centos   virtualization network quetion 6 68
Issue to mail 11 41
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now