Solved

Sendmail multiple routes

Posted on 2004-03-25
8
362 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
Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

18 Experts available now in Live!

Get 1:1 Help Now