Hi

vpopmail-5.4.32

When I try to use the write_file call thru vpopmaild, one extra byte is written to each line. I can correct this by running dos2unix on the file afterwards.

# telnet 10.131.27.61 89
Trying 10.131.27.61...
Connected to 10.131.27.61 (10.131.27.61).
Escape character is '^]'.
+OK
slogin postmas...@bredalsparken.dk *******
+OK
write_file /home/vpopmail/domains/bredalsparken.dk/3/Z/jonas/.qmail
line 1
line 2
.


# ll .qmail
-rw-r--r-- 1 vpopmail vchkpw 16 Aug  3 18:52 .qmail

# dos2unix .qmail
dos2unix: converting file .qmail to UNIX format ...

# ll .qmail
-rw-r--r-- 1 root root 14 Aug  3 18:52 .qmail

The same file is now 2 bytes smaller.

The issue being that writing for instance this line with write_file:

/home/vpopmail/domains/bredalsparken.dk/3/Z/jonas/Maildir/

Delivering mails to that address would give this error in qmail-send log:

cat /service/qmail-send/log/main/current | grep mbox | tai64nlocal
2011-08-03 19:02:30.772570500 delivery 827232: deferral: can't_handle_mbox_delivery_for_/home/vpopmail/domains/bredalsparken.dk/3/Z/jonas/Maildir/_

As stated earlier, running dos2unix on .qmail file resolves the problem.

I've read about this in context to aliases in vpopmaild, but I can't find any mentioning that the problem is fixed in general for vpopmaild's write_file - it doesn't seem to anyway.

Can anybody help me getting this fixed in vpopmaild?


I apologize if this is already mentioned another place, but I couldn't find it if it was.


Best regards
Jonas

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

!DSPAM:4e39801a32711429413028!

Reply via email to