Manually upload email redirect file

AusJeff

Active Member
Jan 10, 2003
42
0
156
Hi,

I need to be able to upload manually the file for redirecting emails. On a previous system this was just a .redirect file located in the home directory.

On Cpanel this is actually located at /etc/valiases/domainname.com

What can I do to allow a file called domainname.com be uplaoded by FTP and replace the previous file?

This email redirection has over 400 forwards, so it is not easily managed through Cpanel.

I have tried creating a link to /etc/valiases and /etc/valiases/domainname.com but 550 errors.

Any Ideas ?
 

SprintSlash

Well-Known Member
Jan 18, 2003
163
0
166
Make sure you upload the file in plain text format..
 

taivu

Well-Known Member
Nov 22, 2001
65
0
306
Originally posted by AusJeff
What can I do to allow a file called domainname.com be uplaoded by FTP and replace the previous file?
I consider not being able to FTP directly to that directory a Good Thing...

What you can do is have the client upload the file in question to their own filespace as domain.com.txt in ASCII format. You (as root) can then copy the file to its place, rename it in the process (to domain.com), then chmod it to 644 and chown to username.mail. That should do it :)
 

AusJeff

Active Member
Jan 10, 2003
42
0
156
Thanks, was hoping there would be an easy way than have the client tell me when he wants to change it :-(

Just hope it's not a daily thing :)
 

gemininetcom

Active Member
Nov 29, 2003
36
0
156
Does anyone has a reasonable solution for a .redirect entry for two destinations, eg.

[email protected] tobe redirected to [email protected] AND [email protected]

have tried it in cpanel, but it kicks always the first redirect address out, leavingus with:
[email protected] tobe redirected to [email protected]

without cpanel the entry in file /home/userdomain/.redirect was easy enough:
[email protected] [email protected],[email protected]

although cpanel has terminated .redirect file by its own, funny enough the .forward still seems to be working correctly.

we are using the .forward file to 'silently' bin all incoming mail on the 'default e-mail address', i.e. all junk mail and e-mail messages with unknown e-mail address are silently dropped into the big bin

one entry only in .forward file:
/dev/null

CU