VMware Images:
|
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 LTS) - Page 4
12 Test PostfixTo see if Postfix is ready for SMTP-AUTH and TLS, run telnet localhost 25 After you have established the connection to your Postfix mail server type ehlo localhost If you see the lines 250-STARTTLS and 250-AUTH LOGIN PLAIN everything is fine: root@server1:/usr/local/sbin# telnet localhost 25 Type quit to return to the system shell.
13 Populate The Database And TestTo populate the database you can use the MySQL shell: mysql -u root -p At least you have to create entries in the tables domains and users: INSERT INTO `domains` (`domain`) VALUES ('example.com'); (Please take care that you use the ENCRYPT syntax in the second INSERT statement in order to encrypt the password!) If you want to make entries in the other two tables, that would look like this: INSERT INTO `forwardings` (`source`, `destination`) VALUES ('info@example.com', 'sales@example.com'); To leave the MySQL shell, type quit; For most people it is easier if they have a graphical front-end to MySQL; therefore you can also use phpMyAdmin (in this example under http://192.168.0.100/phpmyadmin/ or http://server1.example.com/phpmyadmin/) to administrate the mail database. Again, when you create a user, go sure that you use the ENCRYPT function to encrypt the password:
I do not think I have to explain the domains and users table further. The forwardings table can have entries like the following:
The transport table can have entries like these:
See man transport for more details. Please keep in mind that the order of entries in the transport table is important! The entries will be followed from the top to the bottom. Important: Postfix uses a caching mechanism for the transports, therefore it might take a while until you changes in the transport table take effect. If you want them to take effect immediately, run postfix reload after you have made your changes in the transport table.
14 Send A Welcome Email For Creating MaildirWhen you create a new email account and try to fetch emails from it (with POP3/IMAP) you will probably get error messages saying that the Maildir doesn't exist. The Maildir is created automatically when the first email arrives for the new account. Therefore it's a good idea to send a welcome email to a new account. First, we install the mailx package: apt-get install mailx To send a welcome email to sales@example.com, we do this: mailx sales@example.com You will be prompted for the subject. Type in the subject (e.g. Welcome), then press ENTER, and in the next line type your message. When the message is finished, press ENTER again so that you are in a new line, then press CTRL+D; if you don't want to cc the mail, press ENTER again: root@server1:/usr/local/sbin# mailx sales@example.com
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
One number. one voicemail. Seize the lead with Sprint. Learn more
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video
Sprint 4G - The Ultimate Mobile Broadband
Click here
SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial




![Creative Commons Attribution License [Creative Commons Attribution License]](http://creativecommons.org/images/public/somerights20.gif)

print: 

Recent comments
15 hours 11 min ago
16 hours 17 min ago
16 hours 52 min ago
20 hours 45 min ago
21 hours 45 min ago
23 hours 41 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 9 hours ago
1 day 16 hours ago