Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: idarmadi on December 12, 2006, 05:02:11 AM

Title: [MAIL] how to set canonical user?
Post by: idarmadi on December 12, 2006, 05:02:11 AM
Dear all,

I'm new with SME Server.  Previously I used debian + postfix, so I'm stranger with qmail.

My basic question, is there a way to create a canonical user in qmail?

The case :
This SME server (xyz.abc.com) will fetch emails from the main mail server (abc.com).

User @ xyz.abc.com will send mail via SME server, but I want the server to be able to sort the email before sending it out to internet (to prevent looping).

User @ xyz.abc.com is using user@abc.com mail address.

****

Please advice.

Thanks in advance.

Regards,

id
Title: Re: [MAIL] how to set canonical user?
Post by: cactus on December 12, 2006, 09:02:12 AM
Quote from: "idarmadi"
Dear all,

I'm new with SME Server.  Previously I used debian + postfix, so I'm stranger with qmail.

My basic question, is there a way to create a canonical user in qmail?

The case :
This SME server (xyz.abc.com) will fetch emails from the main mail server (abc.com).

User @ xyz.abc.com will send mail via SME server, but I want the server to be able to sort the email before sending it out to internet (to prevent looping).

User @ xyz.abc.com is using user@abc.com mail address.

****

Please advice.

Thanks in advance.

Regards,

id
Maybe the pseudonym panel in the server-manager does what you want.
Title: [MAIL] how to set canonical user?
Post by: bpivk on December 12, 2006, 12:19:31 PM
Quote
This SME server (xyz.abc.com) will fetch emails from the main mail server (abc.com).


Use mail retreival contrib (smeserver-fetchmail). You can fetch mail for users from other mailservers with this contrib.  http://www.schirrms.net/files/smeserver-fetchmail-1.3.4-09.noarch.rpm
Title: [MAIL] how to set canonical user?
Post by: idarmadi on December 13, 2006, 04:55:40 AM
Quote from: "bpivk"
Quote
This SME server (xyz.abc.com) will fetch emails from the main mail server (abc.com).


Use mail retreival contrib (smeserver-fetchmail). You can fetch mail for users from other mailservers with this contrib.  http://www.schirrms.net/files/smeserver-fetchmail-1.3.4-09.noarch.rpm


Thx for the suggestion.  I did it before with sendmail and that will do the trick.  However, it might result in slow email, and more setup time.
(I prefer to alias user@abc.com to user@xyz.abc.com (sme server), than creating a user account @abc.com, then fetching the email from that account to user@xyz.abc.com).
Title: Re: [MAIL] how to set canonical user?
Post by: idarmadi on December 13, 2006, 04:57:50 AM
Quote from: "cactus"
Maybe the pseudonym panel in the server-manager does what you want.


I assume that 'psuedonym' = 'alias'.  If in that case, it won't always work, because some MTA read the alias for the 'incoming' mail, but not for the 'outgoing' mail from local.

But, I'll try it. :)

update :
It can't be done.  The SME server returned "That domain is not hosted on this server".

The SME server hosts xyz.abc.com, and abc.com is being hosted elsewhere.
Title: [MAIL] how to set canonical user?
Post by: bpivk on December 13, 2006, 12:36:38 PM
Well if you host mails on another server then fetchmail could do the trick because alias (pseudonym) can't help you (only for sme if it acts as a mailserver).