LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-15-2012, 02:50 AM   #1
kafka79
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vacation on Postfix Server carlosinfl Linux - Server 1 10-14-2010 05:53 AM
Postfix vacation issue izghitu Linux - Software 0 04-03-2008 04:53 PM
postfix vacation tomazN Linux - Software 0 08-06-2007 02:41 AM
Vacation message for postfix. SSBN Linux - Networking 0 05-29-2005 08:27 AM
vacation not working with postfix jmcollin92 Linux - Software 5 09-21-2004 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration