hi there,
i'm looking at setting up a mail server to run with postfix & Active directory
i've got two scripts at the moment, one that gets all the usernames from Active directory and one that gets all the e-mail aliases from active directory.
aliases -
http://www.geocities.com/evilperson8...adalias_pl.txt
username -
http://www.geocities.com/evilperson8...sername_pl.txt
now once they have pulled down all this information the deposit it in two text files
/etc/postfix/aliases
/etc/postfix/usernames
i have used winbind to join the Active directory network and the /etc/pam.d/dovecot looks like this
auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok
auth required pam_listfile.so onerr=fail file=/etc/postfix/usernames item=user sense=allow
auth sufficient pam_winbind.so
account required /lib/security/$ISA/pam_unix.so
account sufficient /lib/security/$ISA/pam_localuser.so
account sufficient /lib/security/$ISA/pam_succeed_if.so uid < 100 quiet
account required /lib/security/$ISA/pam_permit.so
password requisite /lib/security/$ISA/pam_cracklib.so retry=3
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok
password required /lib/security/$ISA/pam_deny.so
session required /lib/security/$ISA/pam_limits.so
session required /lib/security/$ISA/pam_unix.so
auth required /lib/security/$ISA/pam_deny.so
it is allows local accounts to login and any active directory account that is also in the /etc/postfix/usernames (because we only want certain accounts to have e-mail accounts)
the file format of the /etc/postfix/aliases is
firstname.lastname: username
then in the /etc/postfix/main.cf file the following editations have been made
alias_maps = hash:/etc/aliases, hash:/etc/postfix/aliases
inet_interfaces = all
that is it.
the default MTA has been changed
alternatives --config mta
but now when i send and e-mail it seams to go nowhere?
below is a cut out of the
/var/logs/maillog file
ov 17 15:00:20 rhel postfix/postfix-script: stopping the Postfix mail system
Nov 17 15:00:20 rhel postfix/master[27390]: terminating on signal 15
Nov 17 15:00:22 rhel postfix/postfix-script: starting the Postfix mail system
Nov 17 15:00:22 rhel postfix/master[27776]: daemon started -- version 2.1.5
Nov 17 15:00:22 rhel postfix/qmgr[27778]: B90617C4D0: from=<jack@localhost.school.cathedral.qld.edu.au>, size=813, nrcpt=1 (q$
Nov 17 15:00:22 rhel postfix/qmgr[27778]: 34DA77C4D6: from=<pma@localhost.school.cathedral.qld.edu.au>, size=806, nrcpt=1 (qu$
Nov 17 15:00:22 rhel postfix/qmgr[27778]: 44B207C4D3: from=<pma@localhost.school.cathedral.qld.edu.au>, size=808, nrcpt=1 (qu$
Nov 17 15:00:22 rhel postfix/qmgr[27778]: 13D7F7C4CA: from=<>, size=3211, nrcpt=1 (queue active)
Nov 17 15:00:22 rhel postfix/local[27782]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Nov 17 15:00:23 rhel postfix/master[27776]: warning: process /usr/libexec/postfix/local pid 27782 exit status 1
Nov 17 15:00:23 rhel postfix/master[27776]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Nov 17 15:00:27 rhel imap-login: Login: pma [::ffff:127.0.0.1]
Nov 17 15:00:36 rhel imap-login: Login: pma [::ffff:127.0.0.1]
Nov 17 15:01:23 rhel postfix/local[27800]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Nov 17 15:01:24 rhel postfix/master[27776]: warning: process /usr/libexec/postfix/local pid 27800 exit status 1
Nov 17 15:01:24 rhel postfix/master[27776]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Nov 17 15:02:24 rhel postfix/local[27801]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Nov 17 15:02:25 rhel postfix/master[27776]: warning: process /usr/libexec/postfix/local pid 27801 exit status 1
Nov 17 15:02:25 rhel postfix/master[27776]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Nov 17 15:02:31 rhel imap-login: Login: pma [::ffff:127.0.0.1]
Nov 17 15:03:25 rhel postfix/local[27805]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Nov 17 15:03:26 rhel postfix/master[27776]: warning: process /usr/libexec/postfix/local pid 27805 exit status 1
Nov 17 15:03:26 rhel postfix/master[27776]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Nov 17 15:04:26 rhel postfix/local[27806]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Nov 17 15:04:27 rhel postfix/master[27776]: warning: process /usr/libexec/postfix/local pid 27806 exit status 1
Nov 17 15:04:27 rhel postfix/master[27776]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Nov 17 15:05:27 rhel postfix/local[27808]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Nov 17 15:05:28 rhel postfix/master[27776]: warning: process /usr/libexec/postfix/local pid 27808 exit status 1
Nov 17 15:05:28 rhel postfix/master[27776]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Nov 17 15:05:37 rhel imap-login: Login: pma [::ffff:127.0.0.1]
Nov 17 15:06:28 rhel postfix/local[27812]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Nov 17 15:06:29 rhel postfix/master[27776]: warning: process /usr/libexec/postfix/local pid 27812 exit status 1
Nov 17 15:06:29 rhel postfix/master[27776]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Nov 17 15:07:29 rhel postfix/local[27813]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Nov 17 15:07:30 rhel postfix/master[27776]: warning: process /usr/libexec/postfix/local pid 27813 exit status 1
Nov 17 15:07:30 rhel postfix/master[27776]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Nov 17 15:07:32 rhel imap-login: Login: pma [::ffff:127.0.0.1]
Nov 17 15:08:30 rhel postfix/local[27819]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Nov 17 15:08:31 rhel postfix/master[27776]: warning: process /usr/libexec/postfix/local pid 27819 exit status 1
Nov 17 15:08:31 rhel postfix/master[27776]: warning: /usr/libexec/postfix/local: bad command startup -- throttling