<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
One point:<br>
<br>
if you don't already have a virtusertable, you will need to add an
entry for every other user on the system once you put one in...<br>
<br>
If you have a large number of users where the relationship of
username/email address is a direct mapping, you can create one easily
with a simple perl script parsing /etc/passwd,<br>
<br>
Pete<br>
<br>
<br>
On 19/06/2010 06:31, Rob Kettle wrote:
<blockquote cite="mid:4C1C5645.7030702@kettle.org.uk" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Thanks. The virtusertable route looks good.<br>
<br>
much appreciated.<br>
<br>
Rob<br>
<br>
<br>
On 18/06/2010 22:56, Peter Farrow wrote:
<blockquote cite="mid:4C1BEB80.8070404@farrows.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
To pass off <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:specific_user@somedomain.co.uk">specific_user@somedomain.co.uk</a>,
when
the server already
delivers locally will require a sub domain or alternate hidden domain
to move the mail onto for that specific user.<br>
<br>
For example, if sendmail has somedmain.co.uk in its local-host-names
then all mail for that domain is considered local.<br>
<br>
The only way to redirect a mail for a specific user is to either have a
separate address for that user which is hosted by the other server and
referenced either by MX or mailertable, or to deliver directly to the
fully qualified domain name of the other server as follows:<br>
<br>
since the server already handles <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:everything@somedomain.co.uk">everything@somedomain.co.uk</a>,
if
you
are using a virtusertable you can add a line like this:<br>
<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:specific_user@somedomain.co.uk">specific_user@somedomain.co.uk</a>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:specific_user@otherservername.somedomain.co.uk">specific_user@otherservername.somedomain.co.uk</a><br>
<br>
if you are not using a virtusertable you can add it to /etc/aliases<br>
<br>
specific_user: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:specific_user@otherservername.somedomain.co.uk">specific_user@otherservername.somedomain.co.uk</a><br>
<br>
and run newaliases after the change.<br>
<br>
you can check delivery with:<br>
<br>
sendmail -bv specific_user<br>
<br>
Don't forget to make sure the the other server is configured to accept
mail delivered to its fully qualified hostname,<br>
<br>
Regards<br>
<br>
Pete<br>
<br>
<br>
<br>
<br>
On 18/06/2010 20:09, Alex Neuman wrote:
<blockquote
cite="mid:861413396-1276888168-cardhu_decombobulator_blackberry.rim.net-1479297577-@bda942.bisx.prod.on.blackberry"
type="cite">
<pre wrap="">Mailertable if using sendmail.
--
Alex Neuman
BBM 20EA17C5
+507 6781-9505
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="Skype:alex@rtpty.com">Skype:alex@rtpty.com</a>
-----Original Message-----
From: Rob Kettle <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:rob@kettle.org.uk"><rob@kettle.org.uk></a>
Date: Fri, 18 Jun 2010 18:54:55
To: MailScanner discussion<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:mailscanner@lists.mailscanner.info"><mailscanner@lists.mailscanner.info></a>
Subject: How to send Mail to another server
Hi,
apologies if I missed the obvious but is there a way in sendmail and
mailscanner (running on Centos) to locally deliver mail by default but
deliver to another mail server for certain addresses. Any suggestions
appreciated.
ie. <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:everything@somedomain.co.uk">everything@somedomain.co.uk</a> is delivered to local accounts on the
server but
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:specific_user@somedomain.co.uk">specific_user@somedomain.co.uk</a> is passed off to another server.
many thanks
Rob
</pre>
</blockquote>
<br>
</blockquote>
</blockquote>
<div class="moz-signature"><br>
</div>
</body>
</html>