Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

virtual vacation alias expansion problem?

2010-07-27
2013-08-02
  • I've been trying to get the current virtual vacation script working without any luck and I'm running into a problem I haven't encountered with the older revisions.

    I've got a test domain setup - hosteddomain.tld, with a user testing@hosteddomain.tld configured under it that has a vacation set.

    Vacation debug log shows:
    2010/07/27 15:52:31 DEBUG> /home/vacation/vacation.pl:544 main:: - Script argument SMTP recipient is : 'testing#hosteddomain.tld@autoreply.vacation.tld' and smtp_sender : 'npaufler@mail.domain.tld'
    2010/07/27 15:52:31 DEBUG> /home/vacation/vacation.pl:584 main:: - Email headers have to: 'testing@hosteddomain.tld' and From: 'npaufler@mail.domain.tld (Nicholas Paufler)'
    2010/07/27 15:52:31 DEBUG> /home/vacation/vacation.pl:332 main::find_real_address - Looking for alias records that 'hosteddomain.tld@autoreply.vacation.tld' resolves to with vacation turned on
    2010/07/27 15:52:31 DEBUG> /home/vacation/vacation.pl:370 main::find_real_address - Looking for alias domain for autoreply.vacation.tld / hosteddomain.tld@autoreply.vacation.tld / hosteddomain.tld
    2010/07/27 15:52:31 DEBUG> /home/vacation/vacation.pl:385 main::find_real_address - Looking for domain level aliases for autoreply.vacation.tld / hosteddomain.tld@autoreply.vacation.tld / hosteddomain.tld
    2010/07/27 15:52:31 DEBUG> /home/vacation/vacation.pl:404 main::find_real_address - No domain level alias present for autoreply.vacation.tld / hosteddomain.tld@autoreply.vacation.tld / hosteddomain.tld
    2010/07/27 15:52:31 DEBUG> /home/vacation/vacation.pl:613 main:: - SMTP recipient hosteddomain.tld@autoreply.vacation.tld which resolves to  does not have an active vacation (rv: 0, email: )

    It looks to me like it's not expanding the alias entry correctly and thus isn't able to find it when it does a lookup in the aliases table to check for vacation status.

    Mail log shows:

    Jul 27 15:52:31 mail postfix/pickup: 1744F50832: uid=1001 from=<npaufler>
    Jul 27 15:52:31 mail postfix/cleanup: 1744F50832: message-id=<20100727215231.1744F50832@mail.domain.tld>
    Jul 27 15:52:31 mail postfix/qmgr: 1744F50832: from=<npaufler@mail.domain.tld>, size=313, nrcpt=2 (queue active)
    Jul 27 15:52:31 mail postfix/virtual: 1744F50832: to=<testing@hosteddomain.tld>, relay=virtual, delay=0.05, delays=0.03/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
    Jul 27 15:52:31 mail postfix/pipe: 1744F50832: to=<testing#hosteddomain.tld@autoreply.vacation.tld>, orig_to=<testing@hosteddomain.tld>, relay=vacation, delay=0.42, delays=0.03/0.01/0/0.38, dsn=2.0.0, status=sent (delivered via vacation service)
    Jul 27 15:52:31 mail postfix/qmgr: 1744F50832: removed

    select address,goto from alias;
    +-----------------+-------------------------------------------------+
    | address                  | goto                                                                     |
    +-----------------+-------------------------------------------------+
    | testing@hosteddomain.tld | testing@hosteddomain.tld,testing#hosteddomain.tld@autoreply.vacation.tld |

    I know the transport and alias must be working as it is actually getting to the vacation script - something odd is just happening at that step. The message is delivered to the inbox as well as to the vacation script but it's missing something and isn't able to associate the user. It looks like it is truncating the username# section in the alias.

    Anybody have any suggestions? I am sure it is something blatantly obvious that I am missing.

     
  • Phil Stevens
    Phil Stevens
    2013-07-30

    I know it's three years later but I am having exactly the same problem. Did you ever resolve this?

     
  • SMTP recipient hosteddomain.tld@autoreply.vacation.tld which resolves to does not have an active vacation (rv: 0, email: )

    I'd guess you did not set $vacation_domain correctly in the vacation config. It has to match the value of $CONF['vacation_domain'] in config.*.php.

     
  • Phil Stevens
    Phil Stevens
    2013-07-31

    Ok, that makes sense, and I did indeed have mismatched values in the two configs. I also needed to change the value in the postfix transport map.

    Now I get the following in vacation.log:

    2013/08/01 10:29:35 ERROR> /var/spool/vacation/vacation.pl:464 main::send_vacation_email - Failed to send vacation response: Connection not established

     
    Last edit: Phil Stevens 2013-07-31
  • Phil Stevens
    Phil Stevens
    2013-08-02

     
    Last edit: Phil Stevens 2013-08-02