Hi,
I have recently installed a qmail server which works just great.
One of the issues I am facing is when I am creating vacation/autoreply through qmailadmin a .qmail file is created with contents as below.
/home/vpopmail/domains/domain.dk/ncd/Maildir/
| /usr/local/bin/autorespond 86400 3 /home/vpopmail/domains/ domain.dk/ncd/vacation/message /home/vpopmail/domains/ domain.dk/ncd/vacation
I would like to change the default value of 3 to 1 , so that just one response goes to per user in a day. At present I have to manually edit the .qmail file and change it to 1.
How do I set it as default so that any user when a usere creates a vacation message the default value is 1 and not 3.
Please help. Or you can point somewhere who can help me.
Just edit user.c and recompile. Search for this line and change the '3' to a '1':
Thanks Tom, Your solution worked. I just have a another autorespond issue regarding language. Most of our clients use Danish language. The vacation message created through rouncube or qmailadmin creates a message file which does not understand danish characters.
Tak for din mail.
Jeg er på farten og har begrænset adgang til mails.
Jeg er tilbage på kontoret mandag den 28. september.
changes to
Tak for din mail.
Jeg er på farten og har begrænset adgang til mails.
Jeg er tilbage på kontoret mandag den 28. september.
I have tried changing the system language but no solution as yet. Any comments on this ?
It's probably simply a matter of adding an additional header to the email, possibly Content-Encoding? You could look at some of your own emails. I'm not sure how QmailAdmin is storing the message, maybe UTF-8?
I am not sure how do I add a additional header to the email or content-encoding ? At present Qmailadmin is storing the message in UTF-8 , I want it to store it in ISO-8859-1. How do I change this? This will take care of the danish characters.
I think it will be easier to modify the source to
autorespond
so it includes aContent-Type: text/plain; charset=UTF-8
header in the sent email. You might also need to include aContent-Transfer-Encoding: 8bit
header.Last edit: Tom Collins 2015-10-05
I am guessing this needs to be done in autorespond.c of autorespond-2.0.5. Can u tell me which line needs to be changed and what it would look llike. I found two lines
if ( (s = inspect_headers( "Content-Type", (char )NULL )) == (char )NULL)
if ( inspect_headers("Content-Type", "text/plain" ) != (char *)NULL )
how do I add
Content-Transfer-Encoding: 8bit header
Ok I found out one more thing which is weird. When I create the vacation message through QmailAdmin the message gets created properly in danish characters. But when i create it thru the user login using rouncube's qmailadmin plugin the characters change. I think I will try a different vacation plugin and see if it works.
If you come back to autorespond.c, you need to modify send_message():
As for the problem with QmailAdmin vs. Roundcube, I suspect they're using different encodings when saving the file. One might be UTF8, and the other ISO-8859-1.
Priceless. Your change worked perfectly. The Content Type included in the header made the difference. Thanks for your help.