forward mail

Discussion in 'HOWTO-Related Questions' started by rashid, Jul 5, 2011.

  1. rashid

    rashid New Member

    Dear All

    i am using incoming mail copy to other user with .forward but it not work.
    give me any idea.

    cat /home/abc/.forward
    /abc
    bob

    but it not copy mail to bob

    Reg
    Rashid KHan
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. rashid

    rashid New Member

    bob is a local user
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Did you place the .forward file in the home directory of abc? Did you check permissions? Are there any errors in your mail log?
     
  5. rashid

    rashid New Member

    not forward mail to bob


    cat /home/test/.forward

    /test
    bob

    maillog


    Jun 13 01:53:59 pdc1 sendmail[4385]: p5D5rxqj004385: from=<[email protected]>, size=1090, class=0, nrcpts=1, msgid=<[email protected]>, proto=SMTP, daemon=MTA, relay=[192.168.1.19]
    Jun 13 01:53:59 pdc1 sendmail[4387]: p5D5rxqj004385: forward /home/test/.forward: Group writable file
    Jun 13 01:53:59 pdc1 sendmail[4387]: p5D5rxqj004385: to=<[email protected]>, ctladdr=<[email protected]> (505/505), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31269, dsn=2.0.0, stat=Sent
     
  6. falko

    falko Super Moderator ISPConfig Developer

    I guess this is the problem. What's the output of
    Code:
    ls -la /home/test/.forward
    ?
     
  7. rashid

    rashid New Member

    Thanks falko my problem has resolve

    I check ls -la group and other user have a rights. that's mail not forward.

    # ls -la /home/test/.forward
    -rwxrwxrwx 1 test test 13 Jun 13 01:56 /home/test/.forward

    when i set mail forward perfectly.

    chmod 600 /home/test/.forward
    # ls -la /home/test/.forward
    -rw------- 1 test test 13 Jun 13 01:56 /home/test/.forward
     

Share This Page