Postfix+Cyrus Virtualdomain+lmtp transport - how?

Stefan Nitz cyrus-sasl at fantom.de
Thu Dec 2 16:10:34 EST 2004


Dear listeners,

Am Montag, 29. November 2004 17:21 schrieb Wolfgang Braun:
> Hello,
>
> I just tried to modify a mailserver for Cyrus Virtual-Domain Support.
> But somehow it keeps failing and after browsing the whole mailinglist
> archive and douzends of websites I am pretty clueless now...
>
> I am using Postfix 2.0.19 and Cyrus 2.2.3. Mails are delivered by lmtp.
>
> My previous Setup was:
>
> /etc/cyrus.conf
> ---------------
> lmtpunix      cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1
>
> /etc/imapd.conf
> ---------------
> configdirectory: /var/lib/imap
> partition-default: /var/spool/imap
> sievedir: /var/lib/sieve
> admins: cyrus
> allowanonymouslogin: no
> autocreatequota: 10000
> reject8bit: no
> quotawarn: 90
> timeout: 30
> poptimeout: 10
> dracinterval: 0
> drachost: localhost
> sasl_pwcheck_method: auxprop
> lmtp_overquota_perm_failure: yes
>
> /etc/postfix/main.cf
> --------------------
> mailbox_transport = lmtp:unix:public/lmtp
> myhostname= servername.mydomain.tld
>
> /etc/postfix/virtual
> --------------------
> somedomain.tld           anything
> someuser at somedomain.tld  someuser at servername.mydomain.tld
>
> The mailbox was user.someuser and everything went fine.
>
>
> Now I tried to make the changes for adding Virtual-Domain
> support to Cyrus.
>
> I added to
>
> /etc/imapd.conf
> ---------------
> virtdomains: yes
> defaultdomain: mydomain.com
>
> and created a mailbox user.someuser at somedomain.tld
> I tried logging into the mailbox by telnet and it worked.
>
> Now my main problem is, how to setup the postfix virtual maps
> in /etc/postfix for the delivery works. I tried various
> possibilities which I found in howtos or on websites.
>
> someuser at somedomain.tld  someuser at somedomain.tld\\\@servername.mydomain.tld
> someuser at somedomain.tld  someuser at somedomain.tld
> someuser at somedomain.tld  someuser\\\@somedomain.tld
>
> all give me the Postfix-Error: User unknown in virtual alias table
>
>
> I pretty ran out of ideas what else to try/modify. Perhaps you can
> give me some hint.
Maybe this help (But this looks like a pf question). I'm using postfix 2.1.4. 
It supports virtual domains.
create inside main.cf:
virtual_transport = lmtp:unix:/var/imap/socket/lmtp
virtual_mailbox_domains = beispiel.test sample.check
virtual_mailbox_maps = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual_alias

Inside 'virtual_mailbox_maps' u write f.e.:
@beispiel.test    egal
@sample.check     equal

Inside 'virtual_alias':
mama at beispiel.test   papa at beispiel.test
mum at sample.check     dad at sample.check

With cyradm u'v 2 create:
user.papa at beispiel.test
user.dad at sample.test

These are virtual users! 

Luck Stefan
---
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




More information about the Info-cyrus mailing list