Archive for May 20th, 2011

How to fix “delivery 1: deferral: Sorry,_message_has_wrong_owner._(#4.3.5)/” qmail mail delivery failure message

Friday, May 20th, 2011

After a failed attempt to enable some wrapper scripts to enable domain keys support in a qmail powered mail server my qmail server suddenly stopped being able to normally send mail.

The exact error message which was logged in /var/log/qmail/current was:

@400000004dd66fcc16a088ac delivery 1: deferral: Sorry,_message_has_wrong_owner._(#4.3.5)/

This qmail messed happened after I substituted /var/qmail/bin/qmail-queue and /var/qmail/bin/qmail-remote with two respective wrapper shell scripts which were calling for the original qmail-queue and qmail-remote binaries under the names qmail-queue.orig and qmail-queue.orig

Restoring back qmail-queue.orig to /var/qmail/bin/qmail-queue and qmail-remote.orig to /var/qmain/bin/qmail-remote and restarting the mail server broke my qmail install.

After a bunch of nerves trying to isolate what is causing the error I found out that by mistake I forgot to copy the qmail-queue and qmail-remote permissions and ownership.

Thus I had to check another qmail working installation’s permissions for both binaries and fix the permissions to be equivalent to the permissions:

debian:~# ls -al /var/qmail/bin/qmail-remote
-rwx–x–x 1 root qmail 50464 2011-05-20 12:56 /var/qmail/bin/qmail-remote*
debian:~# ls -al /var/qmail/bin/qmail-queue
-rws–x–x 1 qmailq qmail 20392 2011-05-20 12:56 /var/qmail/bin/qmail-queue*

The exact chmod and chmod commands I issued to solve the shitty issues were as follows:

First I fixed the qmail-queue and qmail-remote ownership:

debian:~# chown qmailq:qmail /var/qmail/bin/qmail-queue
debian:~# chown root:qmail /var/qmail/bin/qmail-remote

Second I set the proper file permissions:

# make the qmail-queue binary suid
debian:~# chmod u+s /var/qmail/bin/qmail-queue
debian:~# chmod 611 /var/qmail/bin/qmail-queue
debian:~# chmod 611 /var/qmail/bin/qmail-remote

Third and last I did a restart of the qmail server and tested it sends properly

debian:~# /usr/bin/qmailctl stop
Stopping qmail...
qmail-send
qmail-smtpd
debian:~# /usr/bin/qmailctl start
Starting qmail

Finally to test that the qmail server qmail-queue was queing and sending with qmail-remote I used the system mail command like so:

debian:~# mail -s "test email" testuser@www.pc-freak.net
asdfafdsdf
.
Cc:

Afterwards the mail was properly received on my mail account testuser@www.pc-freak.net immediately.

In my /var/log/qmail/current log file all seemed fine:

@400000004dd6702a2eb2b064 starting delivery 1: msg 85281596 to remote testuser@www.pc-freak.net
@400000004dd6702a2eb2b834 status: local 0/20 remote 1/20
@400000004dd6702b34cc809c delivery 1: success: 83.228.93.76_accepted_message./Remote_host_said:_250_ok_
1305899099_qp_65293/
@400000004dd6702b34cc886c status: local 0/20 remote 0/20
@400000004dd6702b34cc8c54 end msg 85281596

The test mail was properly received on my mail account testuser@www.pc-freak.net immediately.

It took me like half an hour to figure out what exactly is wrong with the permissions in situations like this I really wanted to change all my qmail installs with postfix and forget forever I ever used qmail …

Life is a Miracle / Jivot je cudo an awesome Serbian must see movie by Emir Kosturica

Friday, May 20th, 2011

Life is a miracle movie, Jivot ie cudo movie cover

Yesterday I saw the Live is a Miracle movie and I was so excited that I decided to drop few lines here about it.

The movie is just one nother magneficient masterpiece by Emil Kosturica and contains a multiple hidden meanings as with the rest of the movies of Kosturica, I’ve watched so far.

The movie is a story about war, love, passion, faith, drama, life expectations and everyday’s existence hardships.
The movie reveals a lot of the culture and insanity that is on the balkans these days, it also shows how inventive people on the balkans are, how much grief we the balkan people hold.
It also shows how immoderate we the balkan people are, parallel with you can see how joyful and ridiculous is the existence in Serbia and the near by bordering countries (Bulgaria, Romania) etc.

The movie is a story circulating mainly around a family consisting of a man, a mentally unstable wife and their son who has the childish dream to become a popular soccer player.
The father Luka is an engineer who just moved with his family from Belgrad to Bosnia and is assigned to open an old railway station and design a new train railways to make the railway station functional again.
A war emerges in the meantime and his beloved son Milos is taken into the army to defend Serbia, his crazy wife Jadranka leaves him to escape with her Hungarian Musician loverman.

Luka looses faith in life and decides to commit suicide, like by the providence a young beautiful muslim girl (Sabaha), who is taken as a hostage is being entrusted to Luka as his only hope to exchange her for Luka’s son.
Luka and Sabaha fells in love and the rest is a love story drama 😉
The movie is really awesome, watch it and enjoy! 🙂