PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > mailertable based on From: value?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

mailertable based on From: value?

Réponse
 
LinkBack Outils de la discussion
Vieux 13/05/2007, 22h27   #1
Matej Cepl
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut mailertable based on From: value?

Hi,

I am a remotee connected to my employer's network via VPN.
I would need all emails from my work address to be routed through
company's SMTP server (whether they are going to our company's
domain or not -- think public email lists where I am subscribed
with my work email, and think SPF on the listservs; I have
already got couple of returned messages because of sending with
my work address through SMTP server of my ISP) and messages with
my personal address going through my ISP's SMTP server or
directly (probably, the former given the tone on other current
threads in this NG).

I know about mailertable, but that is controlled by the
recepients' addresses not sender's.

Could anybody point me in the right direction (preferably just
using some tables, not by direct sendmail.cf rules in my
sendmail.mc), please?

Bonus points would be if somebody told me how to specify
smarthost with different port number (I use VPN, but my colleague
in the office who is in the same situation, uses ssh tunnels, so
have internal SMTP server on localhost with different port
number)? And again, is it possible to do it just with a table, or
do I have to write sendmail.cf rules to sendmail.mc?

Thanks a lot for any reply,

Matej Cepl
  Réponse avec citation
Vieux 13/05/2007, 23h23   #2
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mailertable based on From: value?

Matej Cepl <mcepl@redhat.com> writes:
> [...]
> Could anybody point me in the right direction (preferably just
> using some tables, not by direct sendmail.cf rules in my
> sendmail.mc), please?


http://anfi.homeunix.net/sendmail/smarttab.html
*Smart Table*
The document describes how to make sendmail select smart host [e-mail
relay host] based on envelope sender address (full address or domain
part only).

> Bonus points would be if somebody told me how to specify
> smarthost with different port number (I use VPN, but my colleague
> in the office who is in the same situation, uses ssh tunnels, so
> have internal SMTP server on localhost with different port
> number)? And again, is it possible to do it just with a table, or
> do I have to write sendmail.cf rules to sendmail.mc?


http://www.sendmail.org/faq/section3.html#3.39
3.39 How do I send using an alternate port?

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Oh no, not again.
-- Manoj Srivastava
  Réponse avec citation
Vieux 15/05/2007, 09h58   #3
Matej Cepl
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mailertable based on From: value?

On 2007-05-13, 22:23 GMT, Andrzej Adam Filip wrote:
> http://anfi.homeunix.net/sendmail/smarttab.html
> *Smart Table*
> The document describes how to make sendmail select smart host [e-mail
> relay host] based on envelope sender address (full address or domain
> part only).


Cool! That looks really great. Just one question -- what is the
relation between smarttable and mailertable? I mean, I have this
smarttable (slightly modified, but I think it should be readable
for YOU):

mcepl <chr 64> redhat <chr 46> com smtp:pobox.stuttgart.redhat.com
matej <chr 64> ceplovi <chr 46> cz smtp:smtp.ipex.cz

and this is my mailertable:

redhat.com smtp:pobox.stuttgart.redhat.com
..redhat.com smtp:pobox.stuttgart.redhat.com
seznam.cz smtp:smtp.ipex.cz
..seznam.cz smtp:smtp.ipex.cz
.. smtp:smtp.ipex.cz

(I know that ``seznam.cz'' are not necessary, but they should be
harmless, I hope).

And at least according to sendmail -bt it looks great! Thanks
a lot. However, what happens when I send email without any domain
whatsoever -- I would like that as default option, sendmail would
go to mailertable and use the rules found there. Is it possible?

Thanks a lot again,

Matej
  Réponse avec citation
Vieux 15/05/2007, 13h16   #4
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mailertable based on From: value?

Matej Cepl <mcepl@redhat.com> writes:

> On 2007-05-13, 22:23 GMT, Andrzej Adam Filip wrote:
>> http://anfi.homeunix.net/sendmail/smarttab.html
>> *Smart Table*
>> The document describes how to make sendmail select smart host [e-mail
>> relay host] based on envelope sender address (full address or domain
>> part only).

>
> Cool! That looks really great. Just one question -- what is the
> relation between smarttable and mailertable? I mean, I have this
> smarttable (slightly modified, but I think it should be readable
> for YOU):
>
> mcepl <chr 64> redhat <chr 46> com smtp:pobox.stuttgart.redhat.com
> matej <chr 64> ceplovi <chr 46> cz smtp:smtp.ipex.cz
>
> and this is my mailertable:
>
> redhat.com smtp:pobox.stuttgart.redhat.com
> .redhat.com smtp:pobox.stuttgart.redhat.com
> seznam.cz smtp:smtp.ipex.cz
> .seznam.cz smtp:smtp.ipex.cz
> . smtp:smtp.ipex.cz
>
> (I know that ``seznam.cz'' are not necessary, but they should be
> harmless, I hope).
>
> And at least according to sendmail -bt it looks great! Thanks
> a lot. However, what happens when I send email without any domain
> whatsoever -- I would like that as default option, sendmail would
> go to mailertable and use the rules found there. Is it possible?


1) mailertable is *always* consulted before smarttable and smarttable
is not consulted on "mailertable match"
2) smarttable can also route messages from <>

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Five bicycles make a volkswagen, seven make a truck.
-- Adolfo Guzman
  Réponse avec citation
Vieux 16/05/2007, 22h28   #5
Matej Cepl
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mailertable based on From: value?

On 2007-05-15, 12:16 GMT, Andrzej Adam Filip wrote:
> 1) mailertable is *always* consulted before smarttable and
> smarttable is not consulted on "mailertable match"


So just to be sure, that I understand correctly -- you mean, that
it couldn't be done.

> 2) smarttable can also route messages from <>


Hmm, probably, that's the best solution -- it is not what
I wanted, but oh well.

THanks a lot,

Matej
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h57.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13935 seconds with 13 queries