Hi
Can a RaQ4 only Forward Email to one email?
I have tried
xxx@xxx.com; xxx1@xxx.com and
xxx@xxx.com, xxx1@xxx.com
But I get this error:
The forward email address is not valid. A valid email address looks like andrew@cobalt.com, for example.
Best Regards
Jesper Vels
You must make sure that the email address exists on your server. Then you should have no problems forwarding the mail. Make sure you have set up the appropriate email aliases as well in the control panel.
Chicken
06-21-2001, 09:54 AM
Originally posted by vels
Hi
Can a RaQ4 only Forward Email to one email?
Jesper, I think Huck is confused... as far as I can tell, you can only forward to *one* address. Not one of the better features of the machine. The good news is, there is probably something that you can edit by hand, and you might not even crash the box doing it.
The Cobalt mailing list offers days of reading, but sometimes you can actually find the solution to a problem if you look hard enough. Sometimes not..
Lantins
06-25-2001, 11:09 AM
Hey, are you wanting to have one user get email from 2 domains ?
Lantins
06-25-2001, 11:14 AM
If thats what your wanting to do try this.
I take no credit for this, a good friend of mine made it.
It worked for me :DD
Can I have an email account from domain able to receive mail from another domain?
Joe = joe@mydomain.com
would also like to have the mail from these domains:
@my-domain.com
@mydomain.co.uk
@my-domain.co.uk
You get the idea....
What you need to do first is setup the MAIN domain's SITE on your Raq, and create at least one user (you have probably already done that bit)
You should check that this user currently can receive mail etc, and that everything is working fine.
You should also check that the NEW domains have been registered, and that you have set up your DNS records, including the MX (treat them as completly seperate sites DNS, dont try crossing MX records over or anything) record (mail). And that all the mail is currently sent to (or through) your Raq.
Unfortunatly their is no real easy way to do this through the GUI, without wasting sites and extra users, and then forwarding on, so the best option is this I have detailed below:
Ok that the preliminaries done, now comes the fun bit:
We shall add just one domain here, but you can add infinate (well almost) all in one go if you like.
You will need to Login as 'root' via SSH:
su -
<ENTER YOUR ROOT PASSWORD WHEN PROMPTED>
Back up these files before we edit them: (if anything goes wrong, at least you can copy them the other way)
cp /etc/sendmail.cw /etc/sendmail.cw.bak
cp /etc/virtusertable /etc/virtusertable.bak
Then:
pico -w /etc/sendmail.cw
scroll to the end of the file and add: (ensure that they do not already exist!)
my-domain.co.uk
www.my-domain.co.uk
then Ctrl-X to exit from pico and save the file (enter)
pico -w /etc/virtusertable
scroll to the end of the file and add: (ensure that they do not already exist!)
**** Notice here that:
on the left you have my-domain.co.uk
and on the right it's mydomain.com
@my-domain.co.uk %1@www.mydomain.com
@www.my-domain.co.uk %1@www.mydomain.com
then Ctrl-X to exit from pico and save the file (enter)
Then type: (cut'n'paste is quickest)
/usr/bin/makemap hash /etc/virtusertable < /etc/virtusertable
/etc/rc.d/init.d/sendmail restart
Now thats all their is to it, this method will automagically take care of any new users you add to the MAIN domain (the real sites domain). Which is good, as its the best ultra low maintainance method for doing this multi-domain emails.
Ok I hope thats wat you wanted to know, as is sead before i take no credit for that, a good m8 of mine "akaKul" did it.
Regards
Luke
I want the Raq to foward a mail to my GSM.
Lantins
06-25-2001, 01:13 PM
GSM ????
could you please tell me what that is..
Luke
highlander
06-25-2001, 03:09 PM
On the RaQ 4 you need to edit the aliases file which is found in /etc/mail
All the users who have forwarding are listed at the bottom of the file. You can enter multiple destinations separated by a comma. Strangely, these then show up through the control panel in future.
Robert
Is there a method, so useres only type the emails in the GUI?
brandonk
06-25-2001, 04:49 PM
Luke,
That's a great reference. Can I add it to RaQZone.com? (or you can)
Lantins
06-25-2001, 05:29 PM
Hi, You can put it on the site i supose, but you have to give FULL credit to my friend "akaKul"
Luke
Sorry about my English
Because I don’t know the UNIX commands
this is the safe steps?
telnet in as admin
su -
pico /etc/mail/ aliases
add the second forward address sperated by a comma
user: user@domain.com, user@domain2.com
OK ?
it is safe?
I must restart the server ?
thank you
Originally posted by serv
I must restart the server ?
1. login as admin.
2. su - (Switch to root)
3. cp /etc/mail/aliases /etc/mail/aliases.older (Backup)
4. pico /etc/mail/aliases (Edit)
5. add the second forward address sperated by a comma
user: user@domain.com, user@domain2.com
6. /etc/rc.d/init.d/sendmail restart (Restart sendmail)