Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.06 LTS) - Page 3
8 Modify /etc/aliasesNow we should open /etc/aliases. Make sure that postmaster points to root and root to your own username or your email address, e.g. like this: vi /etc/aliases
Whenever you modify /etc/aliases, you must run newaliases afterwards and restart Postfix: /etc/init.d/postfix restart
9 Quota Exceedance NotificationsIf you want to get notifications about all the email accounts that are over quota, then do this: cd /usr/local/sbin/ Open /usr/local/sbin/quota_notify and edit the variables at the top. Further down in the file (towards the end) there are two lines where you should add a % sign: vi /usr/local/sbin/quota_notify
Run crontab -e to create a cron job for that script:
10 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 PLAIN LOGIN everything is fine: root@server1:~# telnet localhost 25 Type quit to return to the system shell.
11 Install Roundcube MailCreate a new VirtualHost in Apache2 for webmail access. Make sure you change any instance of mail.domain.com to your own domain. vi /etc/apache2/sites-available/mail.example.com
Make the directory for the document root of the new site: mkdir /var/mail.domain.com Then symlink that to the sites-enabled directory and restart Apache2: cd /etc/apache2/sites-enabled Download and unpack Roundcube: wget http://easynews.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.1-rc2.tar.gz Now we must configure Roundcube to attach to our servers: cd config/ Line 21 will need to be modified as follows:
Then modify the main.inc.php file: cp main.inc.php.dist main.inc.php Line 38:
Line 63:
Line 70:
Now we need to make a DB and grant privileges to Roundcube to access the DB: mysql –u root –p create database roundcubemail; Now populate the db: mysql –u mail_admin -p roundcubemail < /var/mail.example.com/SQL/mysql.initial.sql Roundcube should now be setup and accessible at http://mail.example.com To do this manually connect to the mail server and send a piece of mail: telnet localhost 25 Trying 127.0.0.1... ehlo me 250-mail.domain.com mail from: root@domain.com 250 2.1.0 Ok rcpt to: root@domain.com 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> Subject: Testing 250 2.0.0 Ok: queued as 6B4022D82B5 quit 221 2.0.0 Bye
|
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
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



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

print: 

Recent comments
1 day 1 hour ago
1 day 2 hours ago
1 day 2 hours ago
1 day 12 hours ago
1 day 17 hours ago
1 day 17 hours ago
2 days 3 hours ago
2 days 6 hours ago
2 days 11 hours ago
2 days 14 hours ago