Re: imapd 2.4.6 sendmail and rtcyrus v3

2011-04-13 Thread Joseph Brennan

Mogens Melander mog...@fumlersoft.dk wrote:

 My virtusertable has these mappings:

 postmas...@example.comtestu...@example.com
 webmas...@example.com testu...@example.com
 dom...@example.comtestu...@example.com
 @example.com  error:nouser 550 No such user at example.com

Sendmail does recursive table lookups, so:

webmas...@example.com resolves to testu...@example.com
testu...@example.com resolves to error:nouser


Use the aliases file, e.g.

postmaster: testuser
webmaster: testuser
domain: testuser


Joseph Brennan
Columbia University Information Technology


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: imapd 2.4.6 sendmail and rtcyrus v3

2011-04-13 Thread Mogens Melander
On Wed, April 13, 2011 14:52, Joseph Brennan wrote:

 Mogens Melander mog...@fumlersoft.dk wrote:

 My virtusertable has these mappings:

 postmas...@example.com   testu...@example.com
 webmas...@example.comtestu...@example.com
 dom...@example.com   testu...@example.com
 @example.com error:nouser 550 No such user at example.com

 Sendmail does recursive table lookups, so:

 webmas...@example.com resolves to testu...@example.com
 testu...@example.com resolves to error:nouser


 Use the aliases file, e.g.

 postmaster: testuser
 webmaster: testuser
 domain: testuser


 Joseph Brennan
 Columbia University Information Technology

Hmmm, i would think, as there is only virtual users on the system, that they 
would be resolved in
virtusertable.

I do have mappings in aliases like:

MAILER-DAEMON:  postmaster
postmaster: root
root:   mogens
mogens: mog...@trader-internet.dk

I can se that postmas...@example.com resolves to testu...@example.com when 
testing on localhost:

# echo '/map virtuser postmas...@example.com' | sendmail -bt

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter ruleset address
 map_lookup: virtuser (postmas...@example.com) returns testu...@example.com (0)

But receiving from at remote server fail???

remote server:

sendmail[2358]: p3DE7WB2002346: to=postmas...@example.com
, ctladdr=mog...@domain.com (1000/100)
, delay=00:00:06, xdelay=00:00:05, mailer=esmtp, pri=120750
, relay=mail.example.com. [111.222.333.444], dsn=5.0.0, stat=User unknown

local server:

sendmail[3779]: p3DE7cRO003779: postmas...@example.com... No such user at 
example.com

I'm lost???

-- 
Later

Mogens Melander
+66 8701 33224


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: imapd 2.4.6 sendmail and rtcyrus v3

2011-04-13 Thread Joseph Brennan


--On Wednesday, April 13, 2011 16:14 +0200 Mogens Melander 
mog...@fumlersoft.dk wrote:

 I can se that postmas...@example.com resolves to testu...@example.com
 when testing on localhost:

# echo '/map virtuser postmas...@example.com' | sendmail -bt



Sure, but then resolve:-

echo '/map virtuser testu...@example.com' | sendmail -bt

because that's what sendmail does. For this to work you'll need to
define testu...@example.com going to some address not @example.com.

Joseph Brennan
Columbia University Information Technology



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: imapd 2.4.6 sendmail and rtcyrus v3

2011-04-13 Thread Mogens Melander

On Wed, April 13, 2011 16:30, Joseph Brennan wrote:


 --On Wednesday, April 13, 2011 16:14 +0200 Mogens Melander
 mog...@fumlersoft.dk wrote:

 I can se that postmas...@example.com resolves to testu...@example.com
 when testing on localhost:

# echo '/map virtuser postmas...@example.com' | sendmail -bt



 Sure, but then resolve:-

 echo '/map virtuser testu...@example.com' | sendmail -bt

 because that's what sendmail does. For this to work you'll need to
 define testu...@example.com going to some address not @example.com.

 Joseph Brennan
 Columbia University Information Technology

Ok, testu...@example.com is a virtual user in imap's world, and i
would expect sendmail to resolve using SMMAP_SOCKET

# echo '/map cyrus testu...@example.com' | sendmail -bt

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter ruleset address
 map_lookup: cyrus (testu...@example.com) returns testu...@example.com (0)

I have a feeling this might be a problem in my sendmail.mc file:

divert(0)dnl
VERSIONID(`$Id: trader-internet.mc,v 2.0 (rtcyrus3) 2011/04/11 19:30 mogens 
melander Exp $')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
#
FEATURE(`access_db')dnl
FEATURE(`virtusertable')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(nocanonify)dnl
FEATURE(always_add_domain)dnl
#
dnl ## Cyrus imap config
#
LOCAL_CONFIG
dnl ## list of virtual cyrus domains
dnl ## C{VCyrusDomains} example.com example.net
F{VCyrusDomains}/etc/mail/cyrus-virtual-domains
dnl # socket map socket location serviced by cyrus
define(`SMMAP_SOCKET',`/var/imap/socket/smmapd')dnl
dnl # lmtp socket location serviced by cyrus
define(`CYRUS_LMTP_SOCKET',`/var/imap/socket/lmtp')dnl
#
FEATURE(`anfi/vcyrus')dnl
#
MAILER(`anfi/cyrusv3')dnl
MAILER(smtp)dnl
MAILER(local)dnl

-- 
Later

Mogens Melander
+66 8701 33224


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: imapd 2.4.6 sendmail and rtcyrus v3

2011-04-13 Thread Mogens Melander
Ok, thanks anyway.

How are you doing it? sendmail - cyrus imapd.

On Wed, April 13, 2011 17:44, Joseph Brennan wrote:

 At this point, you're using features we don't use, so I bow out.
 Maybe someone else is doing it this way.

 Joseph Brennan
 Columbia University Information Technology

 
 Cyrus Home Page: http://www.cyrusimap.org/
 List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.



-- 
Later

Mogens Melander
+66 8701 33224


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: imapd 2.4.6 sendmail and rtcyrus v3

2011-04-13 Thread Dan White
On 13/04/11 17:54 +0200, Mogens Melander wrote:
Ok, thanks anyway.

How are you doing it? sendmail - cyrus imapd.

Have you taken a look at?:

http://www.cyrusimap.org/docs/cyrus-imapd/2.4.8/install-configure.php

On Wed, April 13, 2011 17:44, Joseph Brennan wrote:

 At this point, you're using features we don't use, so I bow out.
 Maybe someone else is doing it this way.

-- 
Dan White

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: imapd 2.4.6 sendmail and rtcyrus v3

2011-04-13 Thread Joseph Brennan


--On Wednesday, April 13, 2011 17:54 +0200 Mogens Melander 
mog...@fumlersoft.dk wrote:

 Ok, thanks anyway.

 How are you doing it? sendmail - cyrus imapd.


Gateway columbia.edu resolves virtusers, aliases, users, to the correct
destination for that end user, which might be our Cyrus cluster or our
Exchange cluster or forwarding elsewhere. For Cyrus users, gateway
re-sends (smtp) to the end user @ the cyrus cluster's hostname.

On the cyrus hosts, all they have to do is deliver to the user given
in the address. There are no virtuser or alias tables there. There IS
an access.db that tells these hosts to accept mail only from the
gateway.


Joseph Brennan
Columbia University Information Technology




Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/