The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Manually upload email redirect file

Discussion in 'E-mail Discussions' started by AusJeff, Feb 20, 2003.

  1. AusJeff

    AusJeff Active Member

    Joined:
    Jan 10, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    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 ?
     
  2. SprintSlash

    SprintSlash Well-Known Member

    Joined:
    Jan 18, 2003
    Messages:
    163
    Likes Received:
    0
    Trophy Points:
    16
    Make sure you upload the file in plain text format..
     
  3. taivu

    taivu Well-Known Member

    Joined:
    Nov 22, 2001
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    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 :)
     
  4. AusJeff

    AusJeff Active Member

    Joined:
    Jan 10, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    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 :)
     
  5. gemininetcom

    gemininetcom Active Member

    Joined:
    Nov 29, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Does anyone has a reasonable solution for a .redirect entry for two destinations, eg.

    info@domain.com tobe redirected to user1@domain.com AND user2@domain.com

    have tried it in cpanel, but it kicks always the first redirect address out, leavingus with:
    info@domain.com tobe redirected to user2@domain.com

    without cpanel the entry in file /home/userdomain/.redirect was easy enough:
    info@domain.com user1@domain.com,user2@domain.com

    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
     
Loading...

Share This Page