virtual domains with postfix and cyrus - mail gets delivered to defaultdomain

This is a discussion on virtual domains with postfix and cyrus - mail gets delivered to defaultdomain within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; I am trying to set up a virtual domain now that my postfix/cyrus setup is working (many thanks to ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-19-2005
Pete Phillips
 
Posts: n/a
Default virtual domains with postfix and cyrus - mail gets delivered to defaultdomain

I am trying to set up a virtual domain now that my postfix/cyrus setup
is working (many thanks to the guys on this group by the way). It is a
blackbox setup with no unix accounts. Not sure if this is a postfix or
imap question. Big dent in the wall where I've been banging my head all
evening!

My problem is that email to pete@virtual.dom gets delivered to
pete@my.real.domain (the default domain for the system).

I'm running on SuSE enterprise 9.
postfix-2.1
cyrus-imapd-2.2
cyrus-sasl-2.1

/etc/postfix/main.cf
########
######## VIRTUAL DOMAIN SETUP
########
virtual_transport = cyrus
#virtual_transport = virtual
virtual_mailbox_domains = virtual.dom
virtual_mailbox_maps = hash:/etc/postfix/vdomains

(I have tried a number of virtual_transport lines)

/etc/postfix/vdomains
pete@virtual.dom JUNK

/etc/imapd.conf
virtdomains: userid
defaultdomain: my.real.domain

The system appears to strip off the virtual.dom domain and send it
locally so it gets delivered via Cyrus IMAP to pete@my.real.domain.

The postfix mail log shows it coming in and accepting it for
virtual.com, but then it goes and deivers it as if it was an email for
the default domain.

I am also getting the following error:

May 19 00:00:20 ktinga postfix/virtual[8165]: fatal: bad string length 0
< 1: virtual_mailbox_base =
May 19 00:00:21 ktinga postfix/master[5127]: warning: process
/usr/lib/postfix/virtual pid 8165 exit status 1
May 19 00:00:21 ktinga postfix/master[5127]: warning:
/usr/lib/postfix/virtual: bad command startup -- throttling

I assumed that because I am handing the mail off to cyrus, there would
be no need for a 'virtual_mailbox_base' setting ?

I have tried putting

pete@virtual.dom pete\\\@virtual.dom

as I read on one site that this can 'trick' imap into receiving it for
the virtual.dom.

The virtual.dom account appears to be sound - I can log into it, copy
mails into it etc

The directory:
/var/spool/imap/domain/virtual.dom/user/pete/
exists.

Any thoughts on what I need to do do make postfix hand off to imap and
stick it in /var/spool/imap/domain/virtual.dom/user/pete/ would be much
appreciated.

Thanks guys.
Pete
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0