Hi

I've just configured postfix and courier imap to use MySQL and virtual mapping. This seems to work since I can send and recieve from the server.

BUT, when sending from a local (virtual) user the mail is sent twice! First from=<[EMAIL PROTECTED]> and then again from=<username> ...

Can anyone tell what's going on? Can't figure out if it is a Courier or Postfix problem.

The really weird thing is that if I use Outlook Express as client, the problem disappears. But using Thunderbird or Squirrelmail results in 2 mails every time I send one.

Below is a copy of my config-files.


--- Frank


POSTFIX:
### MAIN.CF
append_at_myorigin              = no
prepend_delivered_header        = command, forward
local_recipient_maps            = $virtual_mailbox_maps
transport_maps                  = mysql:/etc/postfix/transport.cf
virtual_mailbox_maps            = mysql:/etc/postfix/mysql_virt.cf
virtual_uid_maps                = mysql:/etc/postfix/vuids.cf
virtual_gid_maps                = mysql:/etc/postfix/vgids.cf
virtual_mailbox_base            = /var/spool/mail
virtual_maps                    = mysql:/etc/postfix/virtual.cf
mailbox_size_limit              = 0
mynetworks                      = 127.0.0.0/8
mydestination                   = $myhostname,$mydomain,$transport_maps

### virtual.cf
user            = postfix
password        = secret
dbname          = mail
table           = virtual
select_field    = goto
where_field     = address
hosts           = localhost

### mysql_virt.cf
user            = postfix
password        = secret
dbname          = mail
table           = users
select_field    = maildir
where_field     = address
hosts           = localhost

### transport.cf
user            = postfix
password        = secret
dbname          = mail
table           = transport
select_field    = transport
where_field     = domain
hosts           = localhost

### vuids.cf
user            = postfix
password        = secret
dbname          = mail
table           = users
select_field    = uid
where_field     = address
hosts           = localhost

### vgids.cf
user            = postfix
password        = secret
dbname          = mail
table           = users
select_field    = gid
where_field     = address
hosts           = localhost

COURIER:
### Authmysqlrc

MYSQL_SERVER            localhost
MYSQL_SOCKET            /var/run/mysqld/mysqld.sock
MYSQL_PORT              0
MYSQL_OPT               0
MYSQL_USERNAME          postfix
MYSQL_PASSWORD          secret
MYSQL_DATABASE          mail
MYSQL_USER_TABLE        users
MYSQL_LOGIN_FIELD       id
MYSQL_CLEAR_PWFIELD     clear
MYSQL_NAME_FIELD        name
MYSQL_UID_FIELD         uid
MYSQL_GID_FIELD         gid
MYSQL_HOME_FIELD        home
MYSQL_WHERE_CLAUSE      imapok=1



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to