Note: If you use vBouncer's IMAP/POP method, you do not need to follow the instructions here. This is only for those who prefer to use mail spool files.
Spool files How-To
This post addresses the location and setup of spool files on different mail server software. You will only need it if you can't find your mail spool file, or don't have one.
Sendmail: Sendmail by default spools the emails for each email address into a text file. Usually found in /var/spool/mail/account_name (account_name is the account in the email address, like subscriber_notify, for example)
Postfix: Postfix, like Sendmail, spools the emails for each email address into a text file. Usually found in /var/spool/mail/account_name (account_name is the account in the email address, like subscriber_notify, for example)
QMail: (Thanks to Merk for testing and providing the information) QMail, by default stores emails in Maildir format, new file for each email. In order to spool emails to a single file, you need to do the following steps:
In the home directory of the user account (subscriber_notify), create a file called
.qmail the content of that file should be a single line indicating the file path where you want the emails to be stored:
/var/spool/mail/subscriber_notify
Or any path you choose. The file needs to exist, so we can first create it by using the touch command:
touch /var/spool/mail/subscriber_notify
And it needs be readable and writable by PHP, so use the chmod command:
chmod 666 /var/spool/mail/subscriber_notify
Vpopmail+QMail: (Thanks to Merk for testing and providing the information) For vpopmail, a user doesnt have a home directory, and it dosent go into the users virtual mail directory either, it sits just below that in the domain's "root" directory. /home/vpopmail may be different for some users.
/home/vpopmail/domains/domain.com/.qmail-subscriber_notify for
subscriber_notify@domain.com (contents as above)
The contents of the .qmail file are still the same described above for QMail. You just need to follow the same steps to create .qmail file and the file to spool the emails too.
Exim+cPanel: (thanks to Paul M for this tip)
Note, before you do this, check this post:
https://vborg.vbsupport.ru/showpost....&postcount=101
It may be best to avoid changing the config of Exim, and just use the IMAP/POP option in vBouncer.
In the exim config file ( /etc/exim.conf ), near the bottom is a section that begins with virtual_userdelivery: - in that section is a line which says mode = 0660 - change this to mode = 0666
In your cpanel account, for address
rejects@domain.com
The path needs to be " /home/<cpaccount>/mail/domain.com/rejects/inbox "
The mail, domain.com & rejects folders all need chmod'ing to 755.
The mailbox file can then be set to 666, and it will work.
Windows Mail Servers: Still waiting for testers and information
----------------------------
If your server is running Exim or a Windows mail server, please post here:
https://vborg.vbsupport.ru/showthread.php?t=83407
Once the information is provided (in that thread), and we get you up and running, the instructions for those specific mail servers will be posted here.
Note that it may actually work out of the box even if you don't have SendMail or PostFix. If you have a text file on your server that can store the emails for a specific account, then you're all set. It's just that I have no experience with those systems, so I don't know.