Koozali.org: home of the SME Server

[MAIL] how to set canonical user?

idarmadi

[MAIL] how to set canonical user?
« 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: [MAIL] how to set canonical user?
« Reply #1 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
[MAIL] how to set canonical user?
« Reply #2 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
"It should just work" if it doesn't report it. Thanks!

idarmadi

[MAIL] how to set canonical user?
« Reply #3 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).

idarmadi

Re: [MAIL] how to set canonical user?
« Reply #4 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.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
[MAIL] how to set canonical user?
« Reply #5 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).
"It should just work" if it doesn't report it. Thanks!