|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|