Some issues that we come across - II

Error : The “SendUsing” configuration value is invalid.

If you get the following error in ASP.net :

The "SendUsing" configuration value is invalid.

Check if the following line is present in the script for sending mail. If not added it.

SmtpMail.SmtpServer = "mail.youdomain.com"

Here, “mail.youdomain.com” is the mail server. If this does not work, you can try using mail server IP.

It should work. :)


Inbox locked error

You get inbox locked error when there is inbox.lock file in the mailbox.

Inbox get locked when :

1. Accessing webmail at the same time a pop3 mail client is accessing email.

2. Accessing email from a mail client at intervals less than 3 minutes.

Remove the inbox.lock file and do not check mails at intervals less than 3 minutes.


Installing BounceParser

BounceParser is used to accept a message and then it will generate a report, whether the message is bounce message. The report will contain the reason for bouncing the message.

BounceParser or Mail::DeliveryStatus::BounceParser can be installed as

perl -MCPAN -e 'install Mail::DeliveryStatus::BounceParser'

Thats all. :)


Wget for password protected directories

When we download images or some files from password protected directories (using .htaccess,etc) using ‘wget’, we may get ‘Authorization failed’ error.

One example is given below :

#wget http://example.com/images/img.jpg
--00:36:34--  http://example.com/images/img.jpg
           => `img.jpg'
Resolving example.com... x.x.x.x
Connecting to example.com|x.x.x.x|:80... connected.
HTTP request sent, awaiting response... 401 Authorization Required

Authorization failed.

In such cases, what we can do is, use user authentication in ‘wget’.

#wget --http-user=username --http-passwd=password http://example.com/images/img.jpg

This way we can download the file easily.


Modifying Autoresponder in Webmin

Autoresponder in Webmin replies with Subject as : ‘Autoreply to <subject of the mail that you used>’.

To remove “Autoreply to” you can do the following.

1. vi /etc/webmin/virtual-server/autoreply.pl

2. Find the line

$rheader{'Subject'} = "Autoreply to $header{'subject'}";

3. Replace it by

$rheader{'Subject'} = "$header{'subject'}";

Yes, thats all.

Now, the autoreply will not have the word “Autoreply to”. :)


Address already in use: make sock: could not bind to

address 0.0.0.0:443 no listening sockets available.

I got the following error while restarting httpd

# service httpd restart
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs!

Check which all processes are listening to port 80 or 443. You can use the following commands.

1. netstat -lnp | grep '0.0.0.0:80'

2. lsof | grep *:www

3. lsof -i:443

4. fuser -v 443/tcp

5. netstat -tulpen | grep :443

You can kill those processes and then restart httpd. This usually solves the problem.

The URI to TrackBack this entry is: http://soumyarprabhu.wordpress.com/2008/07/20/some-issues-that-we-come-across-ii/trackback/

RSS feed for comments on this post.

Leave a Comment