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.


Discussion in 'General Discussion' started by Julie, Nov 6, 2003.

  1. Julie

    Julie Member

    Aug 10, 2001
    Likes Received:
    Trophy Points:
    How do I setup an autoresponder where the original message does NOT go to a pop box. I need the autoresponder sent, but the original message deleted. It seems I can only do one or the other, but not both.
  2. Lena

    Lena Registered

    Nov 12, 2003
    Likes Received:
    Trophy Points:
    Besides an autoresponder, create also a forwarder from
    same address to another address on same domain and one more forwarder from to either
    (if you want to delete original letters completely)
    or (if you want to accumulate original letters in a file just in case)
    |/home/username/path/ /home/username/path/filename

    I think that this deserves to be explained on Add Autoresponder page
    or in online documentation. I had to dig these forums, Exim documentation
    and /etc/exim.conf and experiment much until I came up with this solution.
    # Lena() 19.11.2003
    umask 077; # mailbox is created -rw-------
    if ( open( OUT, ">>$ARGV[0]" )) {
    flock( OUT, 2 ); # exclusive
    seek( OUT, 0, 2 ); # in case someone appended while we were waiting
    while ( <STDIN> ) {
    print OUT $_;
    close OUT; # without previous separate unlocking
    Must be chmoded 755 or 700.

    The more logical solution to specify just
    (path and filename must not contain @ symbol)
    can be used only after a bug in /etc/exim.conf is fixed:
    in virtual_aiases_nostar router "file_transport = address_file"
    must be changed to "file_transport = virtual_address_file"
    and virtual_address_file transport must be added - same as
    address_file transport but with "user" line as in
    virtual_address_pipe transport.
    #2 Lena, Nov 19, 2003
    Last edited: Nov 20, 2003

Share This Page