Re: Postfix can't deliver mail to virtual domains - cannot create file exclusively
Hi Pat, Feb 4 19:57:59 cantona postfix/virtual[579]: CA35333C1D: to=[EMAIL PROTECTED], relay=virtual, delay=0, status=deferred (mailbox /var/mail/vhosts/javaspot.net/pergesu: cannot create file exclusively: No such file or directory) Shouldn't PostFix create the vhosts/javaspot.net directory and pergesu file automatically when it delivers the mail? Not sure what the problem is here. I can send mail to local users just fine, so I don't think it's a permissions problem. please post your main.cf and the files with the virtual entries. -volker ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Postfix can't deliver mail to virtual domains - cannot create file exclusively
I got it working, and managed to get courier-imap working as well. The only problem (big problem?) is that I had to chmod 777 /var/mail to get it all working together. I'm trying to figure out what permissions I can give it to ensure that postfix and courier-imap can work together...but neither one seems to work with regular permissions. I think I've got them in the correct groups and everything, but I'm not sure. It's not a HUGE deal at this point, because I'm the only user on the system, and don't intend to let anyone else have shell access. Still, I'd like to have things set up correctly. I would have figured that the way FreeBSD installed it would have worked...apparently not. On Sat, 05 Feb 2005 09:24:19 +0100, Volker Kindermann [EMAIL PROTECTED] wrote: Hi Pat, Feb 4 19:57:59 cantona postfix/virtual[579]: CA35333C1D: to=[EMAIL PROTECTED], relay=virtual, delay=0, status=deferred (mailbox /var/mail/vhosts/javaspot.net/pergesu: cannot create file exclusively: No such file or directory) Shouldn't PostFix create the vhosts/javaspot.net directory and pergesu file automatically when it delivers the mail? Not sure what the problem is here. I can send mail to local users just fine, so I don't think it's a permissions problem. please post your main.cf and the files with the virtual entries. -volker ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Postfix can't deliver mail to virtual domains - cannot create file exclusively
By the way, the problem appears to be solely permissions-based. When I've got normal-looking permissions on /var/mail, postfix gives that error, cannot create file. Courier-IMAP says, imapd: chdir javaspot.net/pergesu: No such file or directory chmod 777 /var/mail and they both work fine. But that's of course not the permissions I want on it. On Sat, 5 Feb 2005 01:48:30 -0700, Pat Maddox [EMAIL PROTECTED] wrote: I got it working, and managed to get courier-imap working as well. The only problem (big problem?) is that I had to chmod 777 /var/mail to get it all working together. I'm trying to figure out what permissions I can give it to ensure that postfix and courier-imap can work together...but neither one seems to work with regular permissions. I think I've got them in the correct groups and everything, but I'm not sure. It's not a HUGE deal at this point, because I'm the only user on the system, and don't intend to let anyone else have shell access. Still, I'd like to have things set up correctly. I would have figured that the way FreeBSD installed it would have worked...apparently not. On Sat, 05 Feb 2005 09:24:19 +0100, Volker Kindermann [EMAIL PROTECTED] wrote: Hi Pat, Feb 4 19:57:59 cantona postfix/virtual[579]: CA35333C1D: to=[EMAIL PROTECTED], relay=virtual, delay=0, status=deferred (mailbox /var/mail/vhosts/javaspot.net/pergesu: cannot create file exclusively: No such file or directory) Shouldn't PostFix create the vhosts/javaspot.net directory and pergesu file automatically when it delivers the mail? Not sure what the problem is here. I can send mail to local users just fine, so I don't think it's a permissions problem. please post your main.cf and the files with the virtual entries. -volker ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Postfix can't deliver mail to virtual domains - cannot create file exclusively
Hi Pat, Pat Maddox wrote: By the way, the problem appears to be solely permissions-based. When I've got normal-looking permissions on /var/mail, postfix gives that error, cannot create file. Courier-IMAP says, imapd: chdir javaspot.net/pergesu: No such file or directory chmod 777 /var/mail and they both work fine. But that's of course not the permissions I want on it. I have postfix with virtual Maildirs and courier imap set up, too. Here's the relevant part of my main.cf: virtual_mailbox_base = /home/vmail virtual_uid_maps = static:600 virtual_gid_maps = static:600 The directory /home/vmail is owned by the vmail user (id 600). With the virtual_uid_maps setting postfix uses this user for writing to the directories. In courier, you are also able to define this user: /usr/local/courier-imap/sbin/userdb domain/user@domain set home=/home/vmail mail=/home/vmail/domain/user uid=600 gid=600 With these settings everything works well. -volker ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Postfix can't deliver mail to virtual domains - cannot create file exclusively
Pat Maddox wrote: By the way, the problem appears to be solely permissions-based. When I've got normal-looking permissions on /var/mail, postfix gives that error, cannot create file. Courier-IMAP says, imapd: chdir javaspot.net/pergesu: No such file or directory chmod 777 /var/mail and they both work fine. But that's of course not the permissions I want on it. You very probably want 1777 permissions (ie, using the sticky bit like /tmp to prevent people from playing games with other people's mboxes), or else you'll need to make your LDA run setuid-root, in which case 755 is right. [ Or on a few SysV systems, the LDA is setgid-mail, using 775. ] -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]