| 1 |
$Id: howto-freevsd-vhost-sendmail.txt,v 1.4 2002/02/28 21:59:52 cvsbasti Exp $ |
| 2 |
$Log: howto-freevsd-vhost-sendmail.txt,v $ |
| 3 |
Revision 1.4 2002/02/28 21:59:52 cvsbasti |
| 4 |
modify explantion about 'sendmail.cw' |
| 5 |
|
| 6 |
Revision 1.3 2002/02/11 03:32:37 cvsbasti |
| 7 |
first checkin' |
| 8 |
|
| 9 |
|
| 10 |
============================= |
| 11 |
main server |
| 12 |
============================= |
| 13 |
|
| 14 |
BTW: if you want to have most mail config-scripts in one directory you have to move the files |
| 15 |
'/etc/sendmail.cw' and '/etc/virtusertable' to '/etc/mail/'. |
| 16 |
then you *must* change the entry 'FW/etc/sendmail.cw/' in your '/etc/sendmail.cf' |
| 17 |
to 'FW/etc/mail/sendmail.cw'. |
| 18 |
for 'aliases' make a link like: #ln -s /etc/aliases /etc/mail/aliases |
| 19 |
(i did so because of more overview and sure i've been used to do so ;-) |
| 20 |
|
| 21 |
|
| 22 |
- edit 'sendmail.cf' (i explained above) and |
| 23 |
add to 'sendmail.cw' all domains for which sendmail should recieve mails |
| 24 |
|
| 25 |
|
| 26 |
============================ |
| 27 |
virtuser |
| 28 |
============================ |
| 29 |
|
| 30 |
- edit 'virtusertable' and add all mail-users which mail should be recieved for |
| 31 |
e.g.: |
| 32 |
user@domain user # for a real-user |
| 33 |
info@domain info # aliases (see aliases section) |
| 34 |
user@domain user@other-domain # forwarding |
| 35 |
@domain account@some.domain # forward all mails to @domain |
| 36 |
which could not delivered by rules before |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
- build virtusertable.db from virtusertable |
| 41 |
e.g.: |
| 42 |
#makemap hash /etc/mail/virtusertable </etc/mail/virtusertable |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
============================ |
| 47 |
aliases |
| 48 |
============================ |
| 49 |
|
| 50 |
- edit 'aliases' and add an aliases which you want to map on some user or mail-address or mailing-list |
| 51 |
e.g: |
| 52 |
info: admin,user2,user2 # deliver all mails for alias 'info' to admin,user1,user2 |
| 53 |
info: user@domain.com # forward all mails for alias 'info' to user@domain.com |
| 54 |
info-list: :include:/<path-to-your-file>/info-list # deliver all mails for alias 'info-list' to every |
| 55 |
user recorded in file 'info-list' |
| 56 |
|
| 57 |
- create aliases with: |
| 58 |
|
| 59 |
# newaliases |
| 60 |
|
| 61 |
|
| 62 |
- know you see the little trick of using 'included'-file for e.g. mailing-lists |
| 63 |
because you only have to edit the plain-text-formated 'iclided'-file |
| 64 |
and don't need a '#newalises' if you changed it |
| 65 |
sample for a 'included'-file: |
| 66 |
|
| 67 |
user1@domain.com |
| 68 |
user2@domain.com |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|