LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-29-2010, 04:01 AM   #1
kubed_lovee
LQ Newbie
 
Registered: Jun 2007
Location: cairo , Egypt
Distribution: Fedora
Posts: 25

Rep: Reputation: 0
Unhappy Qmail auto responder


Hi Guys

I have a qmail server running, i want to create an autoreponder for one of my accounts using the autorepond for qmail, and i did that the problem is that i receive a very strange response

-It writes the subject inside the message.
-It writes the From inside the message.
-It does not show HTML when it append the original message.

So i want to have my subject written in the mail subject instead of RE:....
Also i want to be able to show HTML inside the auto replay mail.


This is my message in the vacation folder :
Code:
Thanks for entering our Free Stuff competition.

We 've got lots of fantastic free stuff to give away every week so stay tuned!

All the best!
This is my .qmail file:
Code:
/home/vpopmail/domains/XXXXXXXX.com/freestuff/Maildir/
| /usr/bin/autorespond 86400 3 /home/vpopmail/domains/XXXXXXXX.com/freestuff/vacation/message /home/vpopmail/domains/XXXXXXX.com/freestuff/vacation
This is the replay i receive after i have removed the From and Subject from the message as you can see in the message file.

Code:
Thanks for entering our Free Stuff competition.
 
We 've got lots of fantastic free stuff to give away every week on www.XXXXXXX.com so stay tuned!
 
All the best!

-------- Original Message --------
With the Subject : RE: test
Also the HTML in the original message does not appear

I have read that you should write the header in the message file but also does not work,it send them with the auto replay.

I have looked for alternatives but wasn`t too lucky in finding any, so please help.

Thanks in advance.
 
Old 12-29-2010, 11:48 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Hi,

In .qmail you should first put the line for the program you want to run and then the delivery mode.
Also add a "1" at the end of the autorespond line, so it adds the original message quoted and the sender address:
Code:
| /usr/bin/autorespond 86400 3 /home/vpopmail/domains/XXXXXXXX.com/freestuff/vacation/message /home/vpopmail/domains/XXXXXXX.com/freestuff/vacation 1 freestuff@domain.com
/home/vpopmail/domains/XXXXXXXX.com/freestuff/Maildir/
 
Old 12-30-2010, 02:44 AM   #3
kubed_lovee
LQ Newbie
 
Registered: Jun 2007
Location: cairo , Egypt
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 0
Thanks for your response bathory,

But i guess this will not solve my problem about the message subject neither the HTML format issue.
The issue is that when i receive the auto reply i get the mail subject as RE: "what ever the original message title was". and if this message is sent from outlook you will get no thing in the quoted original message because outlook produce total HTML formatted message.

My question is how to change the subject to "Free Stuff from XXXXXXX.com" and allow the HTML formatted message to appear ?

Thanks,
 
Old 12-30-2010, 05:02 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Quote:
My question is how to change the subject to "Free Stuff from XXXXXXX.com" and allow the HTML formatted message to appear ?
I'm afraid you cannot have them both.
If you want to use your own subject in the reply message, you should use this perl script, that assimilates the sendmail vacation program. Read here for details. (Note if you're not using spamassassin comment out the respective lines in the script)
In .qmail you'll need:
Code:
|preline /path/to/vacation freestuff
/home/vpopmail/domains/XXXXXXXX.com/freestuff/Maildir/
The .vacation.msg should look like:
Quote:
From: "Freestuff" <freestuff@domain.com>
Subject: Vacation Message

Thanks for entering our Free Stuff competition.

We 've got lots of fantastic free stuff to give away every week so stay tuned!

All the best!
Regards
 
Old 01-02-2011, 03:59 AM   #5
kubed_lovee
LQ Newbie
 
Registered: Jun 2007
Location: cairo , Egypt
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 0
Hi bathory

Thanks for the solution you given me. but i cant get it to work,
I did installed the script in /usr/local/bin/vacation also removed the spamassassin part " cause i dont have it ".
I did create the .qmail:
Code:
|preline /usr/local/bin/vacation freestuff
/home/vpopmail/domain/XXXXXXX.com/freestuff/Maildir
and in the same directory i did created the .vacation.msg file with the contains:
Code:
Thanks for entering our Free Stuff competition.
 
We 've got lots of fantastic free stuff to give away every week on www.XXXXXXX.com so stay tuned!
 
All the best!
and i get no replay when i send a message to this account, Did i miss some thing ?

Also you have said that i cant have them both "Subject and HTML format" if i managed to get this script to work. what is the other way to have the HTML format applied ?

Thanks very much for your help.
 
Old 01-02-2011, 05:07 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Hi,

Quote:
and i get no replay when i send a message to this account, Did i miss some thing ?
Watch the qmail logs to see what happens.
Mind that you need to make the script executable.

Quote:
i did created the .vacation.msg file with the contains:
The .vacation.msg must contain a From: and a Subject: lines (see post #4)

Quote:
Also you have said that i cant have them both "Subject and HTML format" if i managed to get this script to work. what is the other way to have the HTML format applied ?
You that you cannot have an autoreply with your subject and the original mail body formatted in HTML.
This perl script allows you to use your own Subject in the autoreply, while the autorespond program you used in your 1st post allows you to have the original mail body as quoted text in the autoreply (still no html though).
I'm afraid that I don't know of any free software especially for qmail that can do what you want

Regards
 
Old 01-02-2011, 05:36 AM   #7
kubed_lovee
LQ Newbie
 
Registered: Jun 2007
Location: cairo , Egypt
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 0
Hi bathory

Thanks for the quick answer, but i did write the from and subject in the .vacation.msg file.
However this is the log of the smtp :

Code:
@400000004d20517f0857d37c tcpserver: status: 1/100
@400000004d20517f085a4864 tcpserver: pid 843 from XX.XX.XX.XX
@400000004d20517f085b1f3c tcpserver: ok 843 web.com:192.168.240.1:25 :XX.XX.XX.XX::38898
@400000004d2051801a5b759c CHKUSER accepted rcpt: from <mohammad.farag@YYYYYYYYYYY.com::> remote <server.com:unknown:XX.XX.XX.XX> rcpt <admin@XXXXXXXX.com> : found existing recipient
@400000004d2051801a5bbbec policy_check: remote mohammad.farag@YYYYYYYYY.com -> local admin@XXXXXXXXX.com (UNAUTHENTICATED SENDER)
@400000004d2051801a5c488c policy_check: policy allows transmission
@400000004d20518036cb1f5c tcpserver: end 843 status 0
@400000004d20518036cb2344 tcpserver: status: 0/100
and im still not getting any reply !

thanks.
 
Old 01-02-2011, 09:06 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Well I meant to look at /var/log/qmail/current not /var/log/qmail-smtpd/current (maybe your distro uses different paths/filenames)
Anyway run ls -la in the user's homedir and delete any .vacation* file, except of .vacation.msg and try again. You should see something like:
Quote:
@400000004d2048192c18528c new msg 4793305
@400000004d2048192c185a5c info msg 4793305: bytes 1355 from <sender@foo.com> qp 20244 uid 1003
@400000004d204819311a6194 starting delivery 9: msg 4793305 to local recipient@bar.com
@400000004d204819311a6964 status: local 1/10 remote 0/20
@400000004d20481a05fc99b4 new msg 4793381
@400000004d20481a05fca56c info msg 4793381: bytes 442 from <recipient@bar.com> qp 20249 uid 11123
@400000004d20481a0a84489c starting delivery 10: msg 4793381 to remote sender@foo.com
@400000004d20481a0a84583c status: local 1/10 remote 1/20
@400000004d20481a0a845c24 delivery 9: success: $*_is_no_longer_supported_at_/var/qmail/bin/vacation_line_550./did_1+0+1/
@400000004d20481a0a8463f4 status: local 0/10 remote 1/20
@400000004d20481a0a8467dc end msg 4793305
@400000004d20481a24d24adc delivery 10: success: 192.168.1.51_accepted_message./Remote_host_said:_250_2.5.0_Ok./
@400000004d20481a24d25694 status: local 0/10 remote 0/20
@400000004d20481a24d25a7c end msg 4793381
 
  


Reply

Tags
qmail


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
Postfix Auto Responder jnicou Linux - Server 5 03-28-2012 01:45 PM
[SOLVED] How to configure Auto responder in squirrelmail / sendmail mail4vijay Linux - General 8 02-19-2010 05:01 AM
Vacation Auto responder DB_File.pm Error jamluv Linux - Software 2 12-11-2006 12:28 AM
sendmail auto responder archangel Linux - Software 3 07-13-2004 12:49 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:31 PM.

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