Afficher un message
Vieux 27/09/2006, 07h51   #5
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail CLI calling to different port?

In article <1159308551.680590.277540@h48g2000cwc.googlegroups .com>
"RickvanderZwet" <rickvanderzwet@gmail.com> writes:
>Per Hedeland schreef:
>
>> >RickvanderZwet wrote:
>> >
>> >> Full debug can be found over here:
>> >> http://www.wzoeterwoude.net/~rick/de...mail_debug.txt
>> >>
>> >> a) it there a way to fix this behaviour?

>>
>> It's in FAQ 3.39 (www.sendmail.org/faq) - just that for the command-line
>> submission, you need to modify submit.mc (or whatever file is used to
>> build your /etc/mail/submit.cf).
>>
>> >Parameter -OClientPortOptions=Port=2525

>>
>> No, that binds the *source* port.
>>

>The solution is a bit different and catogorized under 'dirty hacks'
>Looking at line
> 260 : --deliver, id=k8PHrT5f086918, mailer=relay, host=`[127.0.0.1]',
>first user=`rick@wzoeterwoude.net'
>gave me the tought of hacking the 'relay' thing into submit.mc a bit
>Added this part (copy of original Mrelay, but after the $h port 2525)
>MAILER_DEFINITIONS
>Mrelay, P=[IPC], F=mDFMuXa8k, S=EnvFromSMTP/HdrFromSMTP,
>R=MasqSMTP, E=\r\n, L=2040,
> T=DNS/RFC822/SMTP,
> A=TCP $h 2525
>.
>Then it works fine.


Maybe it does, but clearly it's better to use the much "cleaner"
solution in the FAQ that I pointed you to. I.e. redefine only the port
in submit.mc, not the whole mailer definition - besides putting stuff in
the .mc that you don't really want there, your way results in having two
definitions of the relay mailer in the .cf file, which isn't really OK
(it's not documented which of the definitions that "wins").

--Per Hedeland
per@hedeland.org


  Réponse avec citation
 
Page generated in 0,21732 seconds with 9 queries