Postfix virtual vacation
Hi
I have all my mail domains, users, mappings and etc on sql database and I'm trying to get that postfixadmin's vacation.pl "auto reply" to work. I have installed
all the required perl modules and so on followed the instructions as good as I can.
master.cf
smtp-amavis unix - - y - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
-o smtp_send_xforward_command=yes
-o max_use=20
smtp inet n - - - - smtpd
-o content_filter=spamassassin
spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
vacation unix - n n - - pipe
flags=Rq user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} -- ${recipient}
# flags=DRhu user=vacation argv=/var/spool/vacation/vacation.pl
127.0.0.1:10025 inet n - y - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
smtps inet n - n - - smtpd
-o smtpd_enforce_tsl=yes
-o smtpd_sasl_auth_enable=yes
587 inet n - n - - smtpd
-o smtpd_enforce_tsl=yes
-o smtpd_sasl_auth_enable=yes
main.cf no modifications as all my settings are in sql database. VIRTUAL_VACATION/INSTALL.TXT says that I have to put like this:
transport_maps = hash:/etc/postfix/transport
autoreply.yourdomain.com vacation:
but I already got it like this
transport_maps = mysql:/etc/postfix/mysql_transport_maps.cf
that file looks like this
table=domain
select_field=transport
where_field=domain
and when I look to database table domain and field transport it says "virtual". No matter if I change there "vacation" or "vacation:" or "monkey" or "boobs". mmm boobs
How ever if I use nonexsistend.mydomain.com on vacation domain the mail.log says:
May 15 09:13:16 mail postfix/smtp[11815]: 399DB1815DB: to=<test#domain1.org@autoreply.domain2.org>, relay=none, delay=0.23, delays=0.01/0.04/0.18/0, dsn=5.4.4, status=bounced (Host or domain n
ame not found. Name service error for name=autoreply.domain2.org type=A: Host not found)
If I put that autoreply.domain2.org to DNS then it says
May 15 09:49:26 mail postfix/smtp[12672]: E17731815DB: to=<test#domain1.org@autoreply.domain2.org>, relay=none, delay=0.16, delays=0.02/0.09/0.05/0, dsn=5.4.6, status=bounced (mail for autoreply.domain2.org loops back to myself)
What I'm doing wrong now? Does someone got working Postfix autoreply "vacation.pl" system with sql backend with multiple virtual domains and users? How can I check that mail is really passed throught master.cf's vacation.pl script..
Last edited by kafka79; 05-15-2012 at 03:43 AM.
|