Afficher un message
Vieux 26/09/2006, 21h17   #3
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail CLI calling to different port?

In article <1159218816.163795.225650@k70g2000cwa.googlegroups .com>
"=?iso-8859-1?B?UmVu6SBCZXJiZXI=?=" <rberber@mailandnews.com> writes:
>
>RickvanderZwet wrote:
>
>> My current setup invokes
>> a) a qmail server running at port 25
>> b) a sendmail testing server running at port 2525
>>
>> -they are both configured to store the message in Maildir format in the
>> $USER/Maildir (qmail by default, sendmail using procmail)
>> -the both accept the same 'local domain' wzoeterwoude.net
>>
>> sending mail to rick@wzoeterwoude.net (using telnet) at 127.0.0.1:25
>> works fine
>> sending mail to rick@wzoeterwoude.net (using telnet) at 127.0.0.1:2525
>> works fine as well
>>
>> But now the problem; When invoking sendmail from the command line (cli)
>> (using echo "rick" | sendmail -dANSI -d0-99.127 rick@wzoeterwoude.net).
>> -It will first find out the mail is local (Line 260:280)
>> -But instread of using port 2525, it keeps using port 25 (Line 291:293)


Yes, that's the SMTP port...

>> 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.

>> b) ut there a way to inject into the sendmail-queue directly, from the cl?

>
>Yes, take a look at mailx (http://heirloom.sourceforge.net/mailx.html)
>and email (http://email.cleancode.org/) they both support using smtp on
>a specified port.


Not what *I* would call "inject into the sendmail-queue directly" - I'd
say the only reasonable answer to the actual question is "no". I.e. of
course there is a way, it's just files in a directory after all, but you
don't want to go there (especially not if you need to ask about it:-).

--Per Hedeland
per@hedeland.org

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