vhcs2 auto responder not working

Discussion in 'Installation/Configuration' started by Reptile, Sep 4, 2007.

  1. chuckl

    chuckl New Member

    Oh, and of course do an /etc/init.d/postfix reload afterwards, to load any changes.
     
  2. Reptile

    Reptile New Member

    i tried the postmap thing but still nothing.

    are you able to get an autoresponder on your system?
     
  3. chuckl

    chuckl New Member

    Yes, that was the long list of log entries I posted. Should I perhaps zip up arpl-msgr, main.cf, master.cf and anything else you can think of that might be relevant as an attachment, so you can compare them to your files?

    To summarise, I was getting errors on the initial raw installation, which changed to the same message you were getting as I added changes and patches. Once I'd applied the full list, the autoresponder started working, and has worked since.
     
  4. Reptile

    Reptile New Member

    yeah we can give that a shot. it must be acheivable.

    cheers.
     
  5. chuckl

    chuckl New Member

    Comparison files

    Right, 3 files attached.

    The other thing I noticed from your log extract is that there was no mention of user vmail. The auto responder runs as user vmail group mail, so it would suggest that your auto responder is simply not running. Only mentions of permissions vmail:mail I've seen are for the db-keys.pl file in vhcs2/engine/messager, and the strange seemingly unused /var/log/vhcs2/vhcs2-arpl-msgr folder.
     

    Attached Files:

    • vhcs.zip
      File size:
      10.8 KB
      Views:
      300
  6. Reptile

    Reptile New Member

    there are some minor differences in the master.cf at the top but nothign I thought would affect it.

    vhcs2-arpl-msgr is defintely being parsed because if the script contains any error i get an email about it. I am just not getting the auto responder email.
     
  7. chuckl

    chuckl New Member

    Master.cf is the transport file, which is what is giving us the problems, but lets leave that for the mo. Only change I've found there is that from 2.4.6 to 2.4.7 the pipe flag on the arpl transport changed from 'D' to 'O'.

    Might be an idea to disable and re-enable the auto responder in case there are some database flags hidden away somewhere that are now being set, and that the db-keys file in /engine/messager is owned by vmail:mail, and is identical in content to the one in /engine.

    While the autoresponder stuff might be being parsed, I'm still concerned that I do not see log entries in your posted log that correspond to the ones I get.
    I'll get the mail log and post what I mean in a moment.
     
  8. chuckl

    chuckl New Member

    If I work through a 'mail transaction', I get:

    Sending user logging in and sending
    Sep 6 10:05:38 victor courierpop3login: LOGIN, [email protected], ip=[::ffff:127.0.0.1]
    Sep 6 10:05:38 victor courierpop3login: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], top=6850, retr=0, time=0
    Sep 6 10:06:15 victor postfix/smtpd[1569]: connect from victor.theredmans.me.uk[127.0.0.1]
    Sep 6 10:06:15 victor postfix/smtpd[1569]: 9A9D719C011: client=victor.theredmans.me.uk[127.0.0.1]
    Sep 6 10:06:15 victor postfix/cleanup[1571]: 9A9D719C011: message-id=<[email protected]>
    Sep 6 10:06:15 victor postfix/qmgr[1193]: 9A9D719C011: from=<[email protected]>, size=869, nrcpt=2 (queue active)
    Sep 6 10:06:15 victor courierpop3login: Connection, ip=[::ffff:127.0.0.1]

    Mail moving through the system
    6:17 victor postfix/smtpd[1577]: disconnect from victor.theredmans.me.uk[127.0.0.1]
    Sep 6 10:06:17 victor postfix/virtual[1578]: 8FC2C19C026: to=<[email protected]>, relay=virtual, delay=0, status=sent (delivered to maildir)
    Sep 6 10:06:17 victor postfix/smtp[1572]: 9A9D719C011: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=2, status=sent (250 2.6.0 Ok, id=00911-03, from MTA: 250 Ok: queued as 8FC2C19C026)
    Sep 6 10:06:17 victor postfix/smtp[1572]: 9A9D719C011: to=<[email protected]>, orig_to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=2, status=sent (250 2.6.0 Ok, id=00911-03, from MTA: 250 Ok: queued as 8FC2C19C026)
    Sep 6 10:06:17 victor postfix/qmgr[1193]: 9A9D719C011: removed

    Piped to the autoresponder and sent on to destination user
    Sep 6 10:06:19 victor postfix/pipe[1581]: 8FC2C19C026: to=<[email protected]>, relay=vhcs2-arpl, delay=2, status=sent (vhcs2-arpl.vhcs.theredmans.me.uk)
    Sep 6 10:06:19 victor postfix/pickup[1192]: B3F4F19C011: uid=1001 from=<vmail>
    Sep 6 10:06:19 victor postfix/cleanup[1571]: B3F4F19C011: message-id=<[email protected]>
    Sep 6 10:06:19 victor postfix/qmgr[1193]: B3F4F19C011: from=<[email protected]>, size=2343, nrcpt=1 (queue active)
    Sep 6 10:06:19 victor postfix/pipe[1579]: 8FC2C19C026: to=<[email protected]>, orig_to=<[email protected]>, relay=vhcs2-arpl, delay=2, status=sent (vhcs2-arpl.vhcs.theredmans.me.uk)
    Sep 6 10:06:19 victor postfix/qmgr[1193]: 8FC2C19C026: removed

    Autoresponder generates mail response to sender from vmail user
    Sep 6 10:06:20 victor postfix/smtpd[1577]: 4831619C026: client=victor.theredmans.me.uk[127.0.0.1]
    Sep 6 10:06:20 victor postfix/cleanup[1571]: 4831619C026: message-id=<[email protected]>
    Sep 6 10:06:20 victor postfix/qmgr[1193]: 4831619C026: from=<[email protected]>, size=2847, nrcpt=1 (queue active)
    Sep 6 10:06:20 victor postfix/smtpd[1577]: disconnect from victor.theredmans.me.uk[127.0.0.1]

    Autoresponder mail is piped to sender
    Sep 6 10:06:20 victor postfix/smtp[1572]: B3F4F19C011: to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=00912-03, from MTA: 250 Ok: queued as 4831619C026)
    Sep 6 10:06:20 victor postfix/qmgr[1193]: B3F4F19C011: removed
     
  9. Reptile

    Reptile New Member

    ok, making progress now but not perfect.

    My master.cf had no flag option set, so I set it to O.

    Now, i get 2 messages, I get the autorespond message and i get an error message in the email reading


    Command died with status 255:
    "/var/www/vhcs2/engine/messager/vhcs2-arpl-msgr". Command output: Use of
    uninitialized value in pattern match (m//) at
    /var/www/vhcs2/engine/messager/vhcs2-arpl-msgr line 1667. Use of
    uninitialized value in pattern match (m//) at
    /var/www/vhcs2/engine/messager/vhcs2-arpl-msgr line 1667. Use of
    uninitialized value in pattern match (m//) at
    /var/www/vhcs2/engine/messager/vhcs2-arpl-msgr line 1667. Use of
    uninitialized value in concatenation (.) or string at
    /var/www/vhcs2/engine/messager/vhcs2-arpl-msgr line 1772. Use of
    uninitialized value in concatenation (.) or string at
    /var/www/vhcs2/engine/messager/vhcs2-arpl-msgr line 1772. Use of
    uninitialized value in string ne at
    /var/www/vhcs2/engine/messager/vhcs2-arpl-msgr line 1785. can't build
    entity: no body, and not multipart

    and that code is

    if( $head -> get('X-Mailer') !~ m/Autoreply Manager/i &&
    !$head -> get('X-Autoresponse-From') &&
    $head -> get('Auto-Submitted') !~ m/auto-replied/i &&
    $head -> get('Sender')!~ m/autoresponder/i) {
     
  10. chuckl

    chuckl New Member

    vhcs2-arpl-msgr.pl near line1785, code reads

    if($auto_message ne '_no_') {

    if($name) { $mail_to = "\"".$name."\" "."<".$to_ma->address.">"; }

    else{ $mail_to = $to_ma->address; }

    add

    next if $mail_to =~ /vhcs2-arpl/;

    so it reads


    if($auto_message ne '_no_') {

    if($name) { $mail_to = "\"".$name."\" "."<".$to_ma->address.">"; }

    else{ $mail_to = $to_ma->address; }

    next if $mail_to =~ /vhcs2-arpl/;
     
  11. Reptile

    Reptile New Member

    Yes, it's working perfectly now :D I thought I already had that line in place since it was the first fix I added before I came here.

    Thanks for your time and patience I owe you one! :D
     

Share This Page