Re: Sendmail Virtual Domains address rewriting [SOLVED...sorta]

2004-04-22 Thread Andrzej Filip
Chris Harms wrote:
After some tinkering, removing the IP address from /etc/hosts was the 
magic bullet.  However, this raises a larger question:
If S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP tells sendmail not to rewrite 
the address (allegedly), why was it still doing it?

Probably a better question for another list, however I imagine more 
people will encounter this with cyrus than with other configurations.  
If someone knows how to correct that issue, please advise.
Are you *sure*  cyrusv2 mailer was selected by mailertable  lookup ?
sendmail -d60.1 -bv [EMAIL PROTECTED]
1) Mailertable *IS NOT* consulted for local email domains
echo '$=w' | sendmail -bt
2) Sendmail strips domain for local mailer and its replacement defined 
via confLOCAL_MAILER *before* rule sets defined in R= for envelope 
recipient.
Do you have define(`confLOCAL_MAILER',`cyrusv2') in your *.mc file ?

Chris Harms wrote:

Hello,

I'm trying to setup cyrus-imapd 2.2.3 to handle several virtual 
domains.  Everything seems to be ok except for sendmail rewriting the 
recipient domains to a domain for which I have not even told it to 
answer mail.  After following the instructions from the docs in the 
source dir and seeing some posts on this list, my mailer defs in 
sendmail.mc are as follows:
#sendmail.mc
MAILER_DEFINITIONS
Mcyrusv2,   P=[IPC], F=lsDFMnqA5@/:|SmXz, E=\r\n,
  S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
  A=FILE /var/imap/socket/lmtp
#mailertable
domain.tld  cyrusv2:/var/imap/socket/lmtp

#for thoroughness, my imapd.conf
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus
sasl_pwcheck_method: auxprop
virtdomains: userid
unixhierarchysep: on
# tls_cert_file: /var/imap/server.pem
# tls_key_file: /var/imap/server.pem
allownanonymouslogin: no
allowplaintext: yes
loginrealms: domain.tld tdc
sieveusehomedir: false
sievedir: /usr/sieve
I've setup a bogus domain in Bind while getting this to work 
(domain.tld) but have the future valid primary domain for the machine 
set in /etc/hosts.  Naturally mail sent to [EMAIL PROTECTED] is 
rewritten to [EMAIL PROTECTED]  I'll attach entries in the 
maillog (user and realdomain substituted for actual entries:

Apr 21 10:36:53 tdc sendmail[17813]: i3LFarBR017813: from=<[EMAIL PROTECTED]>, 
size=212, class=0, nrcpts=1, msgid=
[EMAIL PROTECTED]>, proto=ESMTP, [EMAIL PROTECTED]
Apr 21 10:36:53 tdc sendmail[17816]: i3LFarA5017816: 
from=<[EMAIL PROTECTED]>, size=451, class=0, nrcpts=1
, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, 
daemon=MTA, relay=localhost [127.0.0.1]
Apr 21 10:36:54 tdc sendmail[17815]: i3LFarBR017813: 
to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]> (0/0), delay=00:00:01, xdelay
=00:00:01, mailer=relay, pri=30212, relay=[127.0.0.1] [127.0.0.1], 
dsn=2.0.0, stat=Sent (i3LFarA5017816 Message accepted for
delivery)
Apr 21 10:36:54 tdc sendmail[17822]: i3LFarA5017816: 
to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay=00:0
0:00, mailer=cyrusv2, pri=30451, relay=localhost, dsn=5.1.1, stat=User 
unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFarA5017816: i3LFasA5017822: 
DSN: User unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFasA5017822: 
to=<[EMAIL PROTECTED]>, delay=00:00:00, xdelay=00:00:
00, mailer=cyrusv2, pri=31469, relay=localhost [[UNIX: 
/var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFasA5017822: i3LFasA6017822: 
return to sender: User unknown

Any help in this would be much appreciated.
Sincerely,
Chris Harms


--
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/ http://slashdot.org/~anfi
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sendmail Virtual Domains address rewriting [SOLVED...sorta]

2004-04-22 Thread Chris Harms
After some tinkering, removing the IP address from /etc/hosts was the 
magic bullet.  However, this raises a larger question:
If S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP tells sendmail not to rewrite 
the address (allegedly), why was it still doing it?

Probably a better question for another list, however I imagine more 
people will encounter this with cyrus than with other configurations.  
If someone knows how to correct that issue, please advise.

Chris

Chris Harms wrote:

Hello,

I'm trying to setup cyrus-imapd 2.2.3 to handle several virtual 
domains.  Everything seems to be ok except for sendmail rewriting the 
recipient domains to a domain for which I have not even told it to 
answer mail.  After following the instructions from the docs in the 
source dir and seeing some posts on this list, my mailer defs in 
sendmail.mc are as follows:
#sendmail.mc
MAILER_DEFINITIONS
Mcyrusv2,   P=[IPC], F=lsDFMnqA5@/:|SmXz, E=\r\n,
  S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
  A=FILE /var/imap/socket/lmtp
#mailertable
domain.tld  cyrusv2:/var/imap/socket/lmtp

#for thoroughness, my imapd.conf
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus
sasl_pwcheck_method: auxprop
virtdomains: userid
unixhierarchysep: on
# tls_cert_file: /var/imap/server.pem
# tls_key_file: /var/imap/server.pem
allownanonymouslogin: no
allowplaintext: yes
loginrealms: domain.tld tdc
sieveusehomedir: false
sievedir: /usr/sieve
I've setup a bogus domain in Bind while getting this to work 
(domain.tld) but have the future valid primary domain for the machine 
set in /etc/hosts.  Naturally mail sent to [EMAIL PROTECTED] is 
rewritten to [EMAIL PROTECTED]  I'll attach entries in the 
maillog (user and realdomain substituted for actual entries:

Apr 21 10:36:53 tdc sendmail[17813]: i3LFarBR017813: from=<[EMAIL PROTECTED]>, 
size=212, class=0, nrcpts=1, msgid=
[EMAIL PROTECTED]>, proto=ESMTP, [EMAIL PROTECTED]
Apr 21 10:36:53 tdc sendmail[17816]: i3LFarA5017816: 
from=<[EMAIL PROTECTED]>, size=451, class=0, nrcpts=1
, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, 
daemon=MTA, relay=localhost [127.0.0.1]
Apr 21 10:36:54 tdc sendmail[17815]: i3LFarBR017813: 
to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]> (0/0), delay=00:00:01, xdelay
=00:00:01, mailer=relay, pri=30212, relay=[127.0.0.1] [127.0.0.1], 
dsn=2.0.0, stat=Sent (i3LFarA5017816 Message accepted for
delivery)
Apr 21 10:36:54 tdc sendmail[17822]: i3LFarA5017816: 
to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay=00:0
0:00, mailer=cyrusv2, pri=30451, relay=localhost, dsn=5.1.1, stat=User 
unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFarA5017816: i3LFasA5017822: 
DSN: User unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFasA5017822: 
to=<[EMAIL PROTECTED]>, delay=00:00:00, xdelay=00:00:
00, mailer=cyrusv2, pri=31469, relay=localhost [[UNIX: 
/var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFasA5017822: i3LFasA6017822: 
return to sender: User unknown

Any help in this would be much appreciated.
Sincerely,
Chris Harms
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sendmail Virtual Domains address rewriting [SOLVED...sorta]

2004-04-22 Thread Andrzej Filip
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris Harms wrote:
After some tinkering, removing the IP address from /etc/hosts was the 
magic bullet.  However, this raises a larger question:
If S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP tells sendmail not to rewrite 
the address (allegedly), why was it still doing it?

Probably a better question for another list, however I imagine more 
people will encounter this with cyrus than with other configurations.  
If someone knows how to correct that issue, please advise.
[...]
The fix you applied is described in cyrus documentation - see
http://asg.web.cmu.edu/cyrus/download/imapd/install-virtdomains.html
Another way is to use "version B" of cf/mailer/cyrusv2.m4 which provides 
cyrusv2d mailer (cyrusv2 with no domain stripping):
http://anfi.homeunix.net/sendmail/cyrusv2.html
[sendmail.org seems to be ready to include it in next release]

You may be interested in the following link
* Real Time Cyrus (and Sendmail) Integration Version 2
http://anfi.homeunix.net/sendmail/rtcyrus2.html
* Sendmail and Cyrus Integration
http://anfi.homeunix.net/sendmail/#cyrus
- -- 
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/ http://slashdot.org/~anfi
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Andrzej Adam Filip : http://anfi.homeunix.net/pubkeys/

iD8DBQFAiAwwZ80vWgkRUpYRAhTzAKCq6/HFtT7RvtcptzOCYIw4JZp3IQCfaDi7
PKfBwgGkQGDhs0/d7ToFaTI=
=OtyE
-END PGP SIGNATURE-
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sendmail Virtual Domains address rewriting [SOLVED...sorta]

2004-04-22 Thread Chris Harms
After some tinkering, removing the IP address from /etc/hosts was the 
magic bullet.  However, this raises a larger question:
If S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP tells sendmail not to rewrite 
the address (allegedly), why was it still doing it?

Probably a better question for another list, however I imagine more 
people will encounter this with cyrus than with other configurations.  
If someone knows how to correct that issue, please advise.

Chris

Chris Harms wrote:

Hello,

I'm trying to setup cyrus-imapd 2.2.3 to handle several virtual 
domains.  Everything seems to be ok except for sendmail rewriting the 
recipient domains to a domain for which I have not even told it to 
answer mail.  After following the instructions from the docs in the 
source dir and seeing some posts on this list, my mailer defs in 
sendmail.mc are as follows:
#sendmail.mc
MAILER_DEFINITIONS
Mcyrusv2,   P=[IPC], F=lsDFMnqA5@/:|SmXz, E=\r\n,
  S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
  A=FILE /var/imap/socket/lmtp
#mailertable
domain.tld  cyrusv2:/var/imap/socket/lmtp

#for thoroughness, my imapd.conf
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus
sasl_pwcheck_method: auxprop
virtdomains: userid
unixhierarchysep: on
# tls_cert_file: /var/imap/server.pem
# tls_key_file: /var/imap/server.pem
allownanonymouslogin: no
allowplaintext: yes
loginrealms: domain.tld tdc
sieveusehomedir: false
sievedir: /usr/sieve
I've setup a bogus domain in Bind while getting this to work 
(domain.tld) but have the future valid primary domain for the machine 
set in /etc/hosts.  Naturally mail sent to [EMAIL PROTECTED] is 
rewritten to [EMAIL PROTECTED]  I'll attach entries in the 
maillog (user and realdomain substituted for actual entries:

Apr 21 10:36:53 tdc sendmail[17813]: i3LFarBR017813: from=<[EMAIL PROTECTED]>, 
size=212, class=0, nrcpts=1, msgid=
[EMAIL PROTECTED]>, proto=ESMTP, [EMAIL PROTECTED]
Apr 21 10:36:53 tdc sendmail[17816]: i3LFarA5017816: 
from=<[EMAIL PROTECTED]>, size=451, class=0, nrcpts=1
, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, 
daemon=MTA, relay=localhost [127.0.0.1]
Apr 21 10:36:54 tdc sendmail[17815]: i3LFarBR017813: 
to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]> (0/0), delay=00:00:01, xdelay
=00:00:01, mailer=relay, pri=30212, relay=[127.0.0.1] [127.0.0.1], 
dsn=2.0.0, stat=Sent (i3LFarA5017816 Message accepted for
delivery)
Apr 21 10:36:54 tdc sendmail[17822]: i3LFarA5017816: 
to=<[EMAIL PROTECTED]>, delay=00:00:01, xdelay=00:0
0:00, mailer=cyrusv2, pri=30451, relay=localhost, dsn=5.1.1, stat=User 
unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFarA5017816: i3LFasA5017822: 
DSN: User unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFasA5017822: 
to=<[EMAIL PROTECTED]>, delay=00:00:00, xdelay=00:00:
00, mailer=cyrusv2, pri=31469, relay=localhost [[UNIX: 
/var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFasA5017822: i3LFasA6017822: 
return to sender: User unknown

Any help in this would be much appreciated.
Sincerely,
Chris Harms
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html