Quantcast
Channel: iRedMail
Viewing all articles
Browse latest Browse all 47870

Re: Local and virtual users - aliases

$
0
0
ZhangHuangbin wrote:

You don't have entry for local user 'james' in /etc/postfix/aliases. Adding one for it should fix your issue. For example:

james: other@domain.com

Hmh, I think we have misunderstood. Lets say my domain is frx.com. And lets say my server name is server.frx.com.

On this server,frx.com I have debian wheezy and iRedMail, for couple of years now. It was recently upgraded to wheezy and latest iredmail through upgrade toutorials. On server I have a couple of local users(one is james) so they can access server from outside over ssh and etc. + bunch of virtual mail users. I want the mail that is ment for root to be forwarded to one outside mail and to a mailbox of a local user james.  Forwarding mail to outside works but user james doesn't get mail to his local mailbox on server. I mean, when he log in over ssh he isn't welcomed wiht "You have x mail." And after it he could just use mutt or alpine to read it...

If I put:
- root: james in aliases it would be the same if I put root: james@server.frx.com because this means deliver mail locally
If I put:
- root: james@frx.com - this is a virtual user mail account so root mail would be forwarded to virtual user mailbox james if it existed and I don't want that because user james doesn't exist in LDAP base and it is not a virtual user.

So is it possible that a local user account james accepts all mail for root?

On my other servers where postfix is installed, in aliases I don't have -> james: other@domain.com because I want mail to be kept local. I just have root: james and mail arrives locally to james mailbox on server and it works.

Btw. as I can see in james malbox this started to happen after I upgraded to wheezy. During upgrade I didn't change main.cf of postfix but dovecot had to be changed to dovecot2 so configuration had to be modified of dovecot.conf...


Viewing all articles
Browse latest Browse all 47870

Trending Articles