[tpop3d-discuss]Issues on strip-domain and $(domain) variable

Odhiambo Washington wash at wananchi.com
Fri, 21 Jan 2005 19:31:25 +0300


* Richard Fincher <richard@room101.co.uk> [20050117 02:48]: wrote:
> I am looking to migrate from Q-popper to tpop3d, and have managed to work
> out most of what I needed to from reading the man files, and the archives
> of the mailing lists.
> 
> I have about 250 POP3 users, who all connect to the same host/IP number,
> using POP3 usernames which at present correspond with Unix logons, and
> are looked up in /etc/shadow.  I would like to begin being able to assign
> sid@domain1.com and sid@domain2.com as different logons.

I've been doing this for a few years now ;)


> To do this, I would like people to be able to use their entire email address
> as POP3 > usernames, and have the POP3 server distinguish between them.

True. That is what I do as well.


> I understand that the "strip-domain" directive in "/etc/tpop3d.conf" is used for this.

Well, as Manuel has already said, that is not the case. I don't use it
as well ;) I use the append-domain directive!

> I am also switching to "maildir" format, and can get everything to work fine
> when using maildir:/var/spool/maildir/$(user)  What I cannot do, is use the
> directive maildir:/var/spool/maildir/$(domain)/$(local-part)  The result is
> an error saying thus:
> 
> try_mailbox_locations: Variable has null value near `$(domain)/$(loca'
>
> The same thing happens if I try:
> 
> /var/spool/maildir/$(domain)/$(user)
> 
> It appears that the "domain" variable is blank in my current configuration.

I use the following:

mailbox: maildir:$(home)/Maildir maildir:/var/spool/virtual/$(domain)/$(user)

/var/spool/virtual seems to be the equiv of your /var/spool/maildir

NB: The users whose mail are stored in /var/spool/virtual/$(domain)/$(user)
    are authenticated against a database managed by vmail-sql!
    Those whose mail are stored in $(home)/Maildir are authenticated
    against /etc/master.password (what Linux guys call /etc/shadow).


> My configure string was:
> ./configure --enable-auth-passwd  --enable-shadow-passwords 
> --disable-auth-pam --enable-mbox-maildir

Mine were:

./configure --enable-auth-pam --enable-pam-leak-hack \
	--enable-auth-mysql \
	--enable-auth-perl \
	--enable-auth-passwd \
	--enable-fcntl-locking \
	--enable-dotfile-locking \
	--enable-cclient-locking \
	--enable-mbox-maildir \
	--with-mysql-include-dir=/usr/local/include/mysql \
	--enable-tls \
	--with-openssl-root=/usr/local"


> My configuration file was:
> listen-address: 213.161.68.214
> strip-domain: true
> timeout-seconds: 600
> log-facility: mail
> mailbox: maildir:/var/spool/maildir/$(domain)/$(local_part)

That should be /var/spool/maildir/$(domain)/$(user)


[snip]
> Exim Transport:
> local_delivery:
>   driver = appendfile
>   create_directory = true
>   directory_mode = 700
>   directory = /var/spool/maildir/${domain}/${local_part}/
>   headers_remove = "Bcc"
>   user = mail
>   group = mail
>   maildir_format
>   mode = 660

If you want mine, I can show you. Remember that I use vmail-sql!!


> I've tried adjusting the permissions of the files/directories under 
> /var/spool/maildir

If you insist on not using the vmail-mysql suite, then better go for
dovecot. It will be more flexible for your situation, I think ;)


        cheers
       - wash 
+----------------------------------+-----------------------------------------+
Odhiambo Washington            		. WANANCHI ONLINE LTD (Nairobi, KE)  |
wash _at_ wananchi _ dot _ com		. 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223			. # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121			. (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"  
						 --from a /. post