Hi there,

I'm trying to implement Mail Archiving solution using dbmail.
I'm following the document:
http://www.dbmail.org/dokuwiki/doku.php/archiving-howto
Everything was made by the document, but I can't receive messages.

My dbmai.conf: http://dpaste.com/1073240/

I've created a user:
dbmail-users -a junix -w password

After that I create a forward:
dbmail-users -x junix -t ju...@mydomain.com

After that I create a archive forward:
dbmail-users -x junix -t ju...@archive-inbound.mydomain.com
dbmail-users -x junix -t ju...@archive-outbound.mydomain.com

My postfix main.cf: http://dpaste.com/1073259/

/etc/postfix/virtual_alias_maps.cf:
user = postfix
password = DBPASSWD
hosts = unix:/var/lib/mysql/mysql.sock
dbname = dbmailarc
query = SELECT alias FROM dbmail_aliases WHERE alias = '%s'

/etc/postfix/transport:
archive-inbound.mydomain.com       dbmail-archive-inbound:
archive-outbound.mydomain.com      dbmail-archive-outbound:

/etc/postfix/master.cf:
#
# DBMail
#
dbmail-lmtp     unix    -       -       n       -       -       lmtp

dbmail-archive-inbound  unix    -       n       n       -       -       pipe
      flags=RDO user=dbmail
argv=/usr/local/sbin/dbmail-archive-inbound ${recipient}

dbmail-archive-outbound  unix    -       n       n       -       -       pipe
      flags=RDO user=dbmail
argv=/usr/local/sbin/dbmail-archive-outbound ${recipient}

/usr/local/sbin/dbmail-archive-inbound:
#!/bin/sh
# email account should be passed as $1
cat - | /usr/sbin/dbmail-deliver -u "$1" -m
"INBOX/Incoming/$(/bin/date +%Y)/$(/bin/date +%m)"

/usr/local/sbin/dbmail-archive-outbound:
#!/bin/sh
# email account should be passed as $1
cat - | /usr/sbin/dbmail-deliver -u "$1" -m
"INBOX/Outgoing/$(/bin/date +%Y)/$(/bin/date +%m)"

When I try to send some message, I've got this:
maillog: http://dpaste.com/1073254/

In my database the messages table is zero rows. =(

Thank you.
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to