Now restart Postfix to make it read the new configuration files:
# postfix reload
In addition to having users listed in SASL and Cyrus, Postfix needs to know about them. Add each user to /usr/local/etc/postfix/virtual in the format:
You may also want to have a single address to receive all mail not designated to a valid address. Add the line:
Be aware that doing this will cause all the spam to that domain to go to that user. On the bright side, doing this will make your setup more compliant with the Internet standards that require the existence of addresses such as
postmap /usr/local/etc/postfix/virtual. Remember to run
postmap every time you change that file.
Testing Your Setup
If you already have an IMAP client, you can connect to your newly configured Cyrus server using the test user. Remember to append the domain name when you log in.
If you don't have an IMAP client, you can use a text-based mail client, called Cone, in the ports system for your test. You can install Cone in the same server in which you have installed Cyrus, or on a different machine as long as it can connect to the Cyrus IMAP server.
# cd /usr/ports/mail/cone # make install clean
For the rest of the test, you do not need to be the root superuser.
- Start the Cone program by typing
coneat the command prompt.
- Click on M for the main menu.
- Click on N for a new account.
- Click on I for IMAP.
- Type a descriptive name for the account name.
- Type the IP or DNS name of the machine in the Server field.
- Enter the username, including the domain, in the Login field.
- Enter the password in the Password field.
- Select the Inbox folder.
Once you are able to connect to the IMAP server with your own client or with Cone, try sending an email. If the machine is the one responsible for handling email for the given domain (that is, if your DNS MX records point to it), you can send an email to your test user from any machine.
If the IMAP server doesn't yet have MX records pointing to it, you can still test your setup by setting the machine you configured as your Cyrus server as the SMTP server. If you're using Cone from the same machine, you don't need to do anything extra. Just write an email and send it to your test user. By default, Cone will use the current machine as the delivery SMTP server.
Francisco Reyes is an independent consultant in New York.
Return to the BSD DevCenter.
Error in mailbox
2007-01-24 07:20:21 Osmar_Leao [View]
2005-12-28 21:44:00 bucketshop [View]
2005-12-28 19:35:22 bucketshop [View]
2005-11-02 20:31:47 fak3r [View]
Instructions are *close*...
2005-10-28 13:22:24 HThomp [View]
Catch All Mailboxes.
2005-10-24 15:48:32 jasontaylor1 [View]