ادامه نصب Mail Server ...........
تنظیم SASL Authentication با TLS
* آدرس فایل پیکر بندی :
/etc/postfix/main.cf
تنظیمات بدین صورت :
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = yourdomain.com
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject _unauth_destination
smtpd_sasl_security_options = noanonymous
کد:On the Dovecot side you also need to specify the dovecot authentication daemon socket. In this case we specify an absolute pathname. Refer to this postfix manual here Edit /etc/dovecot/dovecot.conf Look for the line that starts with auth default, before that insert the lines below. auth default { mechanisms = plain login passdb pam { } userdb passwd { } socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } } Now, rename previous auth default to auth default2. If you dont rename this then dovecot server will give you error like multiple instances of auth default. Now restart all the components of mail server. /etc/init.d/saslauthd restart /etc/init.d/postfix restart /etc/init.d/dovecot restart Test whether your mail server works or not with your outlook express. Configure a user with a user name <user_name> (without @domain) and make sure that you select my server requires authentication. Under settings select same as incoming mail serverNOTE: 1. If you dont enable My server requires authentication in outlook you cannot send emails to external recipients and you get relay access denied error. 2. Do not use root login to login to your mail server. 3. Dont forget to create a new user before you authenticate using outlook.
Forwarding Mails:
ورود به سیستم به عنوان کاربر و نوع:
echo 'destination_email_address' > .forwardشما قادر به ساخت فایل و دیدن ویا حذف .forward هستید!
نصب Squirrel Web Mail
برای نصب این وبمیل حتما توجهداشته باشید که آپاچی و پی اچ پی برروی سرور نصب شده باشد!
apt-get install squirrelmail* آدرس فایل پیکربندی : /etc/apache2/apache2.conf
که به طور پیش فرض تمامی تنظیمات انجام شده است!
Include /etc/squirrelmail/apache.conf
نمونه : http://yourdomain/squirrelmail
خوب میل سرور هم به اتمام رسید ................................