LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Linux with Active Directory authentication - how to automatically forward user's mail (http://www.linuxquestions.org/questions/linux-server-73/linux-with-active-directory-authentication-how-to-automatically-forward-users-mail-895800/)

slinx 08-05-2011 05:05 PM

Linux with Active Directory authentication - how to automatically forward user's mail
 
Hello,

I have Linux servers set up to authenticate users from AD. Say user "joe" logs in, then a Unix user "joe" is created. When that user receives mail, it goes into his system mailbox. How can I configure my system so that when "joe" gets email, the mail is automatically forwarded to his email "joe.smith@ourdomain.com" ? I've looked at a few tutorials, and they require putting the specific user and their forwarding address in /etc/aliases. Is there a way to have the system automatically check if the user is an AD user, then send it to their correct email?

I'm using Centos 5.3, with Samba/winbind authentication against Active Directory, and procmail. I can use any other mail agent if necessary.

Thanks!

kbp 08-06-2011 08:09 AM

Sorry, I haven't used winbind but why are you creating unix users ? ... and why not have central home directories ?

slinx 08-11-2011 09:27 AM

Quote:

Originally Posted by kbp (Post 4435276)
Sorry, I haven't used winbind but why are you creating unix users ? ... and why not have central home directories ?

I'm not creating users. More precisely, a local mailbox for the user is created. The user is defined in winbind.

kbp 08-11-2011 06:32 PM

Quote:

then a Unix user "joe" is created
.. sorry, this was a little misleading :)

You could configure your mail servers to use AD as an ldap source for looking up email recipients

slinx 08-12-2011 12:03 PM

Quote:

Originally Posted by kbp (Post 4440257)
.. sorry, this was a little misleading :)

You could configure your mail servers to use AD as an ldap source for looking up email recipients

Yes, that's what I don't know how to do.


All times are GMT -5. The time now is 11:24 AM.