Beruflich Dokumente
Kultur Dokumente
Virtualization Poll
V irtual U s ers A nd
D omains With
P os tfix, C ourier,
M ySQ L A nd
SquirrelM ail
(U buntu 8 .0 4
L T S) (5 2 4 .9 M B)
(0 5 /1 5 /2 0 0 8 )
V M ware I mage
I mport G uide
L is t of all V M ware
I mages
Free Support
P aid Support
Navigation
H owtos
L inux
C entO S
D ebian
Fedora
Kernel
M andriva
P C LinuxO S
SuSE
U buntu
A pac he
Bac kup
1 of 10 11/30/09 12:05
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
C ontrol P anels
DNS
D es ktop
E mail
A nti-Spam/V irus
P os tfix
P roc mail
Sendmail
FT P
H igh-A vailability
L ighttpd
M onitoring
M ySQ L
P rogramming
C /C ++
P HP
Samba
Sec urity
A nti-Spam/V irus
V irtualization
O ther
FreeBSD
C ommerc ial
M ini-H owtos
Forums
C ontribute
Subs c ription
L ogin
Site M ap/RSS Feeds
User login
U s ername:
P as s word:
Remember M e?
Ads by Google
Postf ix
Sendmail
RBL Serv er
Free Domains
Who's online
2 of 10 11/30/09 12:05
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
HowtoForge Forums
Sell C vv G ood and
fres h, pleas e
purc has e my :X
s ell C vv G ood and
fres h, pleas e
purc has e my :X
how to run
inotifywait
bac kground
Res tarting O penBSD
Sec ure Shell
s erver s s hd
L inux ldap bind
windows ad
L dap from windows
to linux
pos tfix/s quirrelma
il with plugin ...
G odaddy and
N ames ervers
H ow to Run a V ideo
at the s tart
unattended?
L oc al T es ting
Server Setup
News
D is tro Review: O penSU SE 1 1 .2
KD E C ommunity Forums A nnounc e the C ontinuation of Klas s room
D RM C hange C ontinues T o C aus e D ebate
T he P erfec t D es ktop - Fedora 1 2 i6 8 6 (G N O M E )
Stream mus ic wireles s ely us ing P uls eA udio s erver
M us ic A lbum C overs A nd P ic ture P reviews A s Folder T humbnails I n N autilus
L inux M int 8 final releas ed
Finding files and doc uments with Rec oll
When O pen Sourc e M eets C los ed M inds
Strange I deas A bout Freedom of Speec h
more
Recent comments
boot problem after ins tall php5 pakage
1 4 hours 5 3 min ago
T hanks man
1 4 hours 5 9 min ago
3 of 10 11/30/09 12:05
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
Newsletter
Subscribe to
HowtoForge
Newsletter
and s tay informed
about our lates t
H O WT O s and
projec ts .
enter email address
Syndicate
You are here: Home » Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 LTS) » Virtual Users And
4 of 10 11/30/09 12:05
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 LTS) - Page 4
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu
8.04 LTS) - Page 4
250-STARTTLS
and
everything is fine:
5 of 10 11/30/09 12:05
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
T ype
quit
mysql -u root -p
USE mail;
A t leas t you have to c reate entries in the tables domains and users:
(P leas e take c are that you us e the ENCRYPT s yntax in the s ec ond INSERT s tatement in order to enc rypt
the pas s word! )
I f you want to make entries in the other two tables , that would look like this :
quit;
For mos t people it is eas ier if they have a graphic al front- end to M ySQ L ; therefore you c an als o us e
phpM yA dmin (in this example under http://192.168.0.100/phpmyadmin/ or http://server1.example.com
/phpmyadmin/) to adminis trate the mail databas e. A gain, when you c reate a us er, go s ure that you us e
the ENCRYPT func tion to enc rypt the pas s word:
I do not think I have to explain the domains and users table further.
6 of 10 11/30/09 12:05
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
source destination
@example.com @anotherdomain.tld This redirects all emails to example.com to the same user at
anotherdomain.tld. E.g., emails to thomas@example.com will
be forwarded to thomas@anotherdomain.tld.
domain transport
example.com smtp:mail.anotherdomain.tld Delivers all emails for example.com via smtp to the
server mail.anotherdomain.com.
example.com smtp:mail.anotherdomain.tld:2025 Delivers all emails for example.com via smtp to the
server mail.anotherdomain.com, but on port 2025, not
25 which is the default port for smtp.
example.com smtp:[1.2.3.4] The square brackets prevent Postfix from doing lookups
smtp:[1.2.3.4]:2025 of the MX DNS record for the address in square
smtp:[mail.anotherdomain.tld] brackets. Makes sense for IP addresses.
See
7 of 10 11/30/09 12:05
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
man transport
P leas e keep in mind that the order of entries in the transport table is important! T he entries will be
followed from the top to the bottom.
Import ant : P os tfix us es a c ac hing mec hanis m for the trans ports , therefore it might take a while until
you c hanges in the transport table take effec t. I f you want them to take effec t immediately, run
postfix reload
When you c reate a new email ac c ount and try to fetc h emails from it (with P O P 3 /I M A P ) you will
probably get error mes s ages s aying that the M aildir does n't exis t. T he M aildir is c reated
automatic ally when the firs t email arrives for the new ac c ount. T herefore it's a good idea to s end a
welc ome email to a new ac c ount.
mailx sales@example.com
Y ou will be prompted for the s ubjec t. T ype in the s ubjec t (e.g. Welcome), then pres s ENTER, and in the
next line type your mes s age. When the mes s age is finis hed, pres s ENTER again s o that you are in a
new line, then pres s CTRL+D; if you don't want to c c the mail, pres s ENTER again:
8 .0 4 L T S) - P age 3 8 .0 4 L T S) - P age 5
8 of 10 11/30/09 12:05
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
V irtual U s ers A nd D omains With P os tfix, C ourier, M ySQ L A nd SquirrelM ail (M andriva 2 0 0 8 .1 )
V irtual U s ers A nd D omains With P os tfix, C ourier A nd M ySQ L (C entO S 5 .1 )
V irtual U s ers A nd D omains With P os tfix, C ourier A nd M ySQ L (U buntu 7 .1 0 )
V irtual U s ers A nd D omains With P os tfix, C ourier A nd M ySQ L (Fedora 8 )
Pleas e do not us e the comment function to as k for help! I f you need help, pleas e us e our forum.
Comments will be publis hed after adminis trator approval.
Not working
Submitted by finity (registered user) on Thu, 2009-08-13 09:54.
I have used a virtual machine to install postfix using this howto. Step by step, no error message, all went well I would say.
One big issue here. Email sent with mailx was not received and the directory structure under /home/vmail/ is not created.
Domain alias
Submitted by Anonymous (not registered) on Tue, 2009-01-27 15:03.
The domain aliases (@example.com @anotherdomain.tld") doesn't work for me. Anyone else have a problems with it?
reply | view as pdf
This is the first time I have EVER taken the time to comment on a how-to but this is by far the best I have EVER seen..
and I've gone through a lot.
Thank you so much for taking the time to make a decent walkthrough.
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
9 of 10 11/30/09 12:05
Virtual Users And Domains With Postfix, Courier, ... http://www.howtoforge.com/virtual-users-domains-...
10 of 10 11/30/09 12:05