Mailing List Archive

Re: Email messages are stuck in the qmail queue
On 3/21/2014 12:35 AM, Matt Simpson wrote:
> On Mar 20, 2014, at 3:45 AM, Teo En Ming <enming@a2000.net> wrote:
>
>>> I think there is a problem with qmail-send as it's 0 seconds.
> To find out why qmail-send is failing, manually execute /var/qmail/supervise/qmail-send/run and look for error message.
Dear Matt,

I got the following error:

[root@centos-6 bin]# /var/qmail/supervise/qmail-send/run
++ cat /var/qmail/control/defaultdelivery
+ exec env $'\342\200\223'
PATH=/var/qmail/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
qmail-start ./Maildir/
env: –: No such file or directory

--
Yours sincerely,

Teo En Ming
Singapore
Re: Email messages are stuck in the qmail queue [ In reply to ]
Teo En Ming <enming@a2000.net> wrote:
>
> I got the following error:
>
> [root@centos-6 bin]# /var/qmail/supervise/qmail-send/run
> ++ cat /var/qmail/control/defaultdelivery
> + exec env $'\342\200\223' PATH=/var/qmail/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
> qmail-start ./Maildir/
> env: –: No such file or directory

That looks very much like your script doesn't actually contain "env - PATH..."
but instead has some non-ASCII (unicode, probably) char(s) instead of the
dash.

How did you create that `run` file? By copying and pasting from somewhere?
What editor did you use? If you recreate the file with a pure text editor
(like vi) does the problem go away?

`cat -veT /var/qmail/supervise/qmail-send/run` would probably confirm or deny
this.

Charles
--
--------------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at: http://pyropus.ca/software/
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
--------------------------------------------------------------------------
Re: Email messages are stuck in the qmail queue [ In reply to ]
On 3/21/2014 10:17 PM, Charles Cazabon wrote:
> Teo En Ming <enming@a2000.net> wrote:
>> I got the following error:
>>
>> [root@centos-6 bin]# /var/qmail/supervise/qmail-send/run
>> ++ cat /var/qmail/control/defaultdelivery
>> + exec env $'\342\200\223' PATH=/var/qmail/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
>> qmail-start ./Maildir/
>> env: –: No such file or directory
> That looks very much like your script doesn't actually contain "env - PATH..."
> but instead has some non-ASCII (unicode, probably) char(s) instead of the
> dash.
>
> How did you create that `run` file? By copying and pasting from somewhere?
> What editor did you use? If you recreate the file with a pure text editor
> (like vi) does the problem go away?
>
> `cat -veT /var/qmail/supervise/qmail-send/run` would probably confirm or deny
> this.
>
> Charles
Dear Charles,

I have solved the problem.

Like what you have suggested, the hypen or dash in "env - PATH" is
non-ASCII, probably unicode.

I have deleted the hyphen and re-added the hyphen in the /var/qmail/rc
script.

I created the run file using the nano editor. I copied it from
http://linuxawy.net/archive/2013/07/setting-up-qmail-server-on-centos6


--
Yours sincerely,

Teo En Ming
Singapore