LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2005, 11:09 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
Postfix Aliases & Active Directory


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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix authentication against Active Directory mardanian Slackware 3 07-19-2010 12:55 AM
SUSE DNS & Active Directory suseguy Linux - General 0 11-15-2005 02:46 AM
Postfix LDAP lookups with Active Directory paul_mat Linux - Networking 1 11-02-2005 08:44 PM
Postfix, Active Directory Services and Authentication weazy Linux - Software 1 04-28-2003 03:38 PM
Samba & Active Directory in Win2k robinhood1995 Linux - General 3 04-13-2002 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration