Page 1 of 1

Mail Aliases

Posted: Mon Oct 22, 2007 7:42 pm
by MailMan
Hi There,

We're in the process of migrating hundreds of users from multiple different domains on multiple different servers to our new scalix setup.

One of the problems which i am encountering is that some users have email accounts on multiple different domains. Since we are migrating one domain at a time i only want to set up the users on those specific domains and create aliases for the rest of their addresses to forward back to the other servers.

For example:

Let's say we have an alias of help@example.com and example.com has now been migrated to our Scalix Platform. But help@example.com is supposed to point to help@mail1.com, help@mail2.com, help@mail3.com and help@mail4.com, none of which have been migrated to our server yet.

I don't want to set up "Internet Addresses" for these addresses because they will be migrated later on but we need the main alias to work right now.

Does anyone have any advice for getting this to work other than reverting back to Postfix for the time being and creating them there?

Thanks and regards,

Ken

Posted: Tue Oct 23, 2007 11:05 am
by MailMan
I'm sorry but this is very urgent (final rollout is today). If we can't get the community version working we definitely won't be purchasing the enterprise version.

This is usually a very simple thing to implement on Postfix but it seems to be very difficult on Scalix. Can you shed some light on it please?

Thanks!

Ken

Posted: Tue Oct 23, 2007 11:33 am
by kanderson
I'm not completely sure what the problem here is...

On the Scalix server, create a user, and give him the email address help@example.com

If you don't add the other addresses, email will not be accepted for those users.

If you want to deliver all email to the scalix server, and pass the email that isn't destined for Scalix back to another server, then set the other server as your smarthost in sendmail, and set the appropriate relay lines in /var/opt/scalix/??/s/sys/smtpd.cfg. This way, inbound email will be accepted, If it's for a scalix user, then it will be delivered. If it isn't for a user on the Scalix server it will be passed to the smarthost, which is your old server, and it will be delivered there.

Note that after you change the smtpd.cfg file you'll want to restart smtpd with:
omoff -d0 smtpd && omon smtpd

Kev.

Posted: Tue Oct 23, 2007 11:46 am
by MailMan
Hi there,

Ok thanks for the reply, but this is what i am trying to do:

In postfix i would do:

group@example.com: mail1@example.com,mail2@example.com,mail3@example.com,mail4@differentdomain.com,user@gmail.com

But i don't want to create a user for each of the recipients of the mail, i just want to be able to send the mail to multiple people on multiple servers like i could on postfix.

Thanks

Ken

Posted: Tue Oct 23, 2007 11:50 am
by kanderson
That can be done in the /etc/alias file, which will be used by sendmail on your scalix server.

Alternately, you can create groups on the scalix server, and have the messages delivered through them.

Personally, if you already have the aliases file, I'd use that, and switch to using sendmail as the inbound smtp.

Kev.

Posted: Tue Oct 23, 2007 1:14 pm
by MailMan
Thanks Kev, But the aliases file on Sendmail only allows local user aliases and not ones for @ addresses... Since we have multiple domains this isn't feasible. Is there another way?

Regards,

Ken

Posted: Tue Oct 23, 2007 2:08 pm
by kanderson
Err, I do it all the time...

root: kevin, kevin@gmail.com

stuff like that. It works fine. Just issue newaliases after making the changes.

Kev.

Posted: Tue Oct 23, 2007 4:44 pm
by MailMan
Hi Kevin,

Try changing your alias to:

root@whatever.com: kevin, kevin@gmail.com

then run newaliases and see what happens :)... as i said... it works in postfix but not in sendmail or scalix!

Ken

Posted: Tue Oct 23, 2007 6:17 pm
by kanderson
Ok, maybe I'm not understanding the problem here.

Create a group, and direct the emails out from there. Scalix WILL allow you to accept the email address from anywhere, but if you are using a licensed server, be aware that you'll need that domain listed in the license.

or, since you spicifally said you do not want to create those entries,

Just deliver email to your old server like you are now, and pull the scalix mail into Scalix with fetchmail.

Kev.

Posted: Tue Oct 23, 2007 9:00 pm
by btisdall
if you want to alias user@domain you can use sendmail's virtualusertable feature:

http://www.sendmail.org/doc/sendmail-current/cf/README

Posted: Thu Oct 25, 2007 10:12 am
by uwe-beach
Hi kevin,

root: kevin, kevin@gmail.com


this is what i've tried.
I also put an entry like

root system@domain.de

in /etc/mail/genericstable and run SuSEconfig to generate the /etc/mail/genericstable.db

This is written in /etc/sendmail.cf

# Generics table (mapping outgoing addresses)
Kgenerics hash -o /etc/mail/genericstable.db

If i send a mail from root with
mailx -s Test Uwe@domain.de
the mail will not be sent and /var/log/mail reports :

stat=Deferred: 421 dns lookup failed for sender domain

What's wrong ?

I'm using SuSE 10.1 and scalix 11.2

regards
uwe