Afficher un message
Vieux 30/03/2008, 11h35   #9
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cyrus + smmapd without patching sendmail?

Wincent Colaiuta <win@wincent.com> wrote:

> On 30 mar, 03:02, Andrzej Adam Filip <a...@onet.eu> wrote:
>>
>> Do two tests:
>> 1) What sendmail selects for delivery?
>> sendmail -bv valid_cyrus_acco...@cyrus.virtual.domain
>> sendmail -bv invalid_cyrus_acco...@cyrus.virtual.domain

>
> It does the right thing here:
>
> $ sendmail -bv foo@wincent.com
> foo@wincent.com... User unknown


It is right.

> $ sendmail -bv win@wincent.com
> win@wincent.com... deliverable: mailer local, user win_example_com


It is not right answer for RTCyrus3.
It does not use local mailer, it does not strip domain part of recipient.

Do you use RTCyrus3 of one of RTCyru2 variants? [Which one?]


>> 2) Send one message as root in verbose mode
>>
>> (echo "subject: test"; echo) | sendmail -v valid_cyrus_acco...@cyrus.virtual.domain
>>

>
> This works, as you can see, but it uses the "local" mailer instead of
> the "anfi/cyrusv3" one (will paste the log excerpt below):
> [...]


To get meaningful result you should also use (as root) additional -Am
command line switch I have forgotten to mention :-)

> And here is the correspnding log excerpt:
> [...]
> Mar 29 21:17:27 wincent1 sendmail[8109]: m2U1HRS8008108:
> to=<win@wincent.com>, ctladdr=<root@wincent1.inetu.net> (0/0),
> delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30590, dsn=2.0.0,
> stat=Sent
>
> Note the "mailer=local" there in the last entry. That's all there is;
> no lmtpunix entries follow. Compare that with how things are without
> RTCyrus3:
>
> Mar 29 21:20:00 wincent1 sendmail[8220]: m2U1Jxh3008220:
> to=win@wincent.com, delay=00:00:01, xdelay=00:00:01, mailer=cyrusv2,
> pri=34431, relay=localhost [[UNIX: /var/lib/imap/socket/lmtp]],
> dsn=2.0.0, stat=Sent
>
> Which is then followed by a bunch of lmtpunix entries...


Send me (via email) results of the test given below:
1)
echo '3,0 valid_a@cyrus.virtual.domain' | sendmail -d21.12 -d60.5 -bt
2)
echo '5 valid_a@cyrus.virtual.domain' | sendmail -d21.12 -d60.5 -bt
3) echp '=M' | sendmail -bt | grep local


--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
"Irrigation of the land with seawater desalinated by fusion power is ancient.
It's called 'rain'."
-- Michael McClary, in alt.fusion
  Réponse avec citation
 
Page generated in 0,06922 seconds with 9 queries