heya,

i've got the postfix-2.2.5p0-sasl2 port on an openbsd 3.7-stable machine. the
setup has been working great thus far, but now that i'm trying to encrypt my
virtual mailbox directory (using vnconfig) i'm encountering problems that i
can't resolve myself.

i have everything working fine without encrypted mailboxes: virtual mailboxes
setup such that all the email is delivered to subdirectories of /var/vmail,
where vmail is the virtual mailbox user account, and users can relay mail and
use IMAPS for access. on a few other openbsd machines i've successfully setup
encrypted disk images using vnconfig from whence i host FTP and samba shares.
there is no problem using these images that are mounted via vnconfig: the FTP
and samba servers access the mounted svnd devices without event. however, when i
attempt to mount an encrypted image on /var/vmail and use that image to store my
mailboxes, i get errors from postfix when it attempts delivery to one of the
virtual mailboxes. in terms of commands, i issue and see the following (this
includes some config file contents too):

$ cat /etc/fstab

/dev/wd0a / ffs rw 1 1
/dev/wd0h /home ffs rw,nodev,nosuid 1 2
/dev/wd0d /tmp ffs rw,nodev,nosuid 1 2
/dev/wd0g /usr ffs rw,nodev 1 2
/dev/wd0e /var ffs rw,nodev,nosuid 1 2

# this is the encrypted image: it's ~2GB
$ pwd
/home
$ ls -al protected                                                             
                                                                         
-rw-r--r--  1 root  wheel  2048000000 Jan 13 11:26 protected

# so i do the following
sudo postfix stop
sudo /usr/local/libexec/imapd-ssl.rc stop
sudo mv /var/vmail /var/vmail.bak
sudo vnconfig -ck -v /dev/svnd0c /home/protected
sudo mount -o rw,nodev,nosuid /dev/svnd0c /var/vmail
# i have tried mounting without any options and that doesn't work either
sudo cp -pR /var/vmail.bak/* /var/vmail/

$ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/wd0a      147M   37.1M    103M    27%    /
/dev/wd0h     28.6G    6.6G   20.6G    24%    /home
/dev/wd0d      295M    8.0K    280M     0%    /tmp
/dev/wd0g      5.9G    3.5G    2.1G    62%    /usr
/dev/wd0e     1006M    137M    819M    14%    /var
/dev/svnd0c    1.9G   70.0M    1.7G     4%    /var/vmail

sudo /usr/local/libexec/imapd-ssl.rc start
sudo postfix start

# from /var/log/maillog
Jan 13 11:23:50 served postfix/cleanup[3157]: 823AF1432E:
message-id=<[EMAIL PROTECTED]>
Jan 13 11:23:50 served postfix/smtpd[5521]: disconnect from
served.mysite.com[10.0.0.2]
Jan 13 11:23:50 served postfix/qmgr[20136]: 823AF1432E: from=<[EMAIL 
PROTECTED]>,
size=928, nrcpt=1 (queue active)
Jan 13 11:23:51 served postfix/virtual[11909]: 823AF1432E: to=<[EMAIL 
PROTECTED]>,
relay=virtual, delay=1, status=bounced (maildir delivery failed: create
 /var/vmail/jy-p/tmp/1137173030.P11909.served.mysite.com: File too large)
Jan 13 11:23:51 served postfix/cleanup[3157]: 34D9714330:
message-id=<[EMAIL PROTECTED]>
Jan 13 11:23:51 served postfix/qmgr[20136]: 34D9714330: from=<>, size=2752,
nrcpt=1 (queue active)
Jan 13 11:23:51 served postfix/qmgr[20136]: 823AF1432E: removed
Jan 13 11:23:51 served postfix/virtual[11909]: 34D9714330: to=<[EMAIL 
PROTECTED]>,
relay=virtual, delay=0, status=bounced (maildir delivery failed: create
 /var/vmail/jy-p/tmp/1137173031.P11909.served.mysite.com: File too large)
Jan 13 11:23:51 served postfix/qmgr[20136]: 34D9714330: removed

i've tried adding the following to my /etc/postfix/main.cf to no avail:

message_size_limit = 52428800
virtual_mailbox_limit = 52428800

this happens with all message deliveries that are attempted. this particular
test email is more or less empty (< 2 KB).

one thought is that i can't mount something on a /var subdirectory that's larger
than the amount of free space on the /var partition itself. i haven't tested
this yet, but i don't suspect that this is the case. if it is, please apply the
cluestick. if there is anything i've left out in terms of information that would
be useful to help fix the problem, please let me know.

if this mail doesn't bounce from the postfix-users list, please make sure to CC
me on any reply since i'm not subscribed.

any suggestions welcome. thx for reading.

kind regards,
jake

Reply via email to