Koozali.org: home of the SME Server

Forward received mails to another domain out of my e-smith

Guty

Forward received mails to another domain out of my e-smith
« on: September 28, 2004, 12:45:59 PM »
I have a server with e-smith sme 6.01-01 installed and i want that  received mail in some user will be redirect to another domain that isn't in my server. I try creating  alias manually in the file 90aliasses in /etc/e-smith/templates-custom/var/qmail/virtualdomains.. with the following format:
user@mydomain.com:user@foreigndomain.com
but it didn't work. i searched in the web contribs but i  didn't find the solution to my problem. If anybody can help me

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Forward received mails to another domain out of my e-smi
« Reply #1 on: September 28, 2004, 12:59:25 PM »
Guty

Try this instead.

Create a new user account eg newuseraccountname on your system and set it to deliver to the external address ie user@foreigndomain.com

Then in /etc/e-smith/templates-custom/var/qmail/control/virtualdomains/90aliases add:

user@mydomain.com:newuseraccountname

then do
/sbin/e-smith/signal-event email-update

I haven't tried it but I think it should work.
Refer
http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/virtual%20domain%20email%20aliases%20HOWTO%20for%20sme%20server.htm
...

Offline raem

  • *
  • 3,972
  • +4/-0
Forward received mails to another domain out of my e-smith
« Reply #2 on: September 28, 2004, 01:04:49 PM »
Guty

You don't need to use the 90aliases file.
Why not just forward the mail in the user account setup to the external address.
I do that all the time for "external" recipients with addresses like user1@mydomain.com which get forwarded to jack@his-isp.com.
...

Guty

really simple
« Reply #3 on: September 28, 2004, 01:12:54 PM »
thanks for your help ray it was very usefull for me..i see before read your answer that in the server manager in "users" there is an option where you can select "forward mail to address bellow" and you can specify the email...