Zentyal Forum, Linux Small Business Server

Zentyal Server => Email and Groupware => Topic started by: ATT1 on July 10, 2016, 07:43:27 pm

Title: Special mail configuration - how to implement this in Webmail ?
Post by: ATT1 on July 10, 2016, 07:43:27 pm
Hello,
We have a rather "special" mail configuration. Our setup is as follows:
We have  a local domain, called "companyname.lan" and a Zentyal 4.2 server called "srv01.companyname.lan" (aka 'Server01').

"Server01" fetches the mails for each user from the external domain "mail.companyname.com" every minute and delivers it to user1, user2, user3.... at srv01.companyname.lan. The fetched, external mails are available for each user at the local imap server on Server01.

When we SEND e-mail, we use the external sending mailserver: mail.companyname.com ; not the Zentyal "Server01".

In Thunderbird, we can configure this easily, just by selecting the proper sending server.

However, when user1/2/3... logs in into Srv01 as Webmail, he can only send to other local users, not to anyone on the Internet.

Thus, we want to configure webmail so if "user1@companyname.lan" logs in, he should send e-mails as "user1@companyname.com" and use the existing external mail server "mail.companyname.com" instead of the local imap server on Zentyal.

Is that possible?

If it is possible, how do I implement this ? What do I have to change in Webmail so it will act like this ?