Archive for the Category »E-mails issue «

How to set E-mail size in exim?

You can set the E-mail size limit from your WHM.

First login into WHM
Second select “Exim Configuration Editor”  present unde ” Service Configuration” section.
Third scroll down and  click on  “Advanced Editor” optoin.

You will see  the empty box (remember select first empty box) where you can type  (right underneath where you see #!!# cPanel Exim 4 Config), enter in the following:

message_size_limit = 100M

Fourth scroll down to the bottom of that screen and click “Save” option.

Exim configuration will be rebuilt with the new option and your Exim will be restarted.

Horde session issue?

There is a very common  issue where Horde prevents access to webmail by repeatedly redirecting viewers to Language Selection screen. The following commands, executed as root, will solve these issues:

root@server[~]#/usr/local/cpanel/bin/checkperlmodules
root@server[~]#/scripts/fullhordereset
root@server[~]#myisamchk -r /var/lib/mysql/horde/horde_sessionhandler.MYI

If still you have problem then check the ownership for session directory present in /var/cpanel/userhomes/cpanelhorde directory.

root@server[~]#ll /var/cpanel/userhomes/cpanelhorde

drwx–x–x 4 cpanelhorde cpanelhorde 4096 Jun  5  2009 ./
drwx–x–x 7 root        root        4096 Dec 17 01:48 ../
drwxr-x— 2 cpanelhorde cpanelhorde 4096 Jun  5  2009 mail/
drwx—— 2 cpanelhorde cpanelhorde 4096 Jan 27 14:01 sessions/

Session directory should be cpanelhorde.cpanelhorde ownership recursively


How to disable local-mail delivery for one domain name?

You can disable local-mail delivery for one  domain name from your shell and follow the instructions..

First go to file
root@gunjan[~]#vi /etc/localdomains
Then select the domain name give them comment# or remove it and save the file
:wq!

Second step go to file
root@gunjan[~]#vi /etc/remotedomains
and add the domain name we have comment or removed in the above file
:wq!

Basically when ever we use external mail server at that time we need to remove domains entry from /etc/localdomains file and add it in /etc/remotedomains file

Enable html display for horde?

You can enable the html display for horde by using following steps but please make sure that you have been logged in as root.

root@gunjan[~]# vi /usr/local/cpanel/base/horde/imp/config/mime_drivers.php

Search for the line
—-
/**
* HTML driver settings
*/
$mime_drivers['imp']['html']['inline'] = false;

—–

and replace it with

——–
/**
* HTML driver settings
*/
$mime_drivers['imp']['html']['inline'] = true;

——–
Save the changes and restart the following services.
root@gunjan[~]#service cpanel restart
root@gunjan[~]#/scripts/restartsrv_courier

Mails are not downloading in outlook?

Mails are not downloading in outlook but present on server in Inbox.In that case after looking into mail logs we are getting this error message:

“scancur opendir(“cur”): No such file or directory”

To resolve this issue follow the steps

service chkservd stop
service courier-authlib stop
service courier-imap stop

Open up /var/cpanel/cpanel.config and set maildir=0 ( if there’s no entry there, just add in )

Following, run the following command in sequence:

/scripts/eximup –force
service cpanel restart
service xinetd restart
service courier-authlib restart
service courier-imap restart
service chkservd start

Send mail by using phpmail function.

You can create a simple php mail form by using following code..

————————–

<?
$to      = ’supp0rt@xyz.com’;
$subject = ‘The test for mail function’;
$message = ‘Hello’;
$headers = ‘From: test@abc123.com’ . “\r\n” .
‘Reply-To: test@testforever123.com’ . “\r\n” .
‘X-Mailer: PHP/’ . phpversion();
mail($to, $subject, $message, $headers);
?>

————————–

If you are not able to receive the E-mail then you need to check whether your server is allowing to send an E-mail by using phpmail() or not?’ if you are having root login then check the servers main php.ini file.

root@Gunjan []# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

root@Gunjan []# cat /usr/local/lib/php.ini | grep disable_function
disable_functions=”system,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,highlight_file,phpmail”

and remove the phpmail() from server mail php.ini file and restart the Apache web server.

Or

If you are not having root login details then contact your hosting provider and ask them to enable the phpmail() for your hosting account.

You can also send me an E-mail at nsk.gunjan@gmail.com if you have any queries…

Set email filtering from your cpanel.

You can set the mail filter from your cPanel.Please refer the following steps to set the filter.

1] Go to cPanel
2] Go to Mail >> email filtering
3] Click on Add filter option

This option is also very useful when your clients domain marked as Spam in your mail box.For example if mail came from example.com marked as Spam mail then you can set the filter in following manner to avoid Spam mail problem for your domain example.com

1] Go to cPanel
2] Go to Mail >> email filtering
3] Click on Add filter option
4] Then as per your email headers you can set the filter here
5] Destination should be allow
6] Click on activate option.

So that all the mails from example.com not be treated as spam.

Category: E-mails issue  Tags: , ,  Comments off

Authentication failed (bad password) error in outlook?

The most common problem in outlook is “Authentication failed (bad password)”

There was a problem logging onto your mail server. Your Password was rejected. Account: ‘192.168.0.2′, Server: ‘192.168.0.2′, Protocol: POP3, Server Response: ‘-ERR Authentication failed (bad password?)’, Port: 110, Secure(SSL): No, Server Error: 0×800CCC90, Error Number: 0×800CCC92

To resolve above error refer following steps.

cd /etc/xinetd.d/

rm -f popa3d popa3ds

service xinetd restart

/scripts/courierup –force

/scripts/eximup –force

What is Exim?

The most common question for beginners on linux server is “What is Exim”? we are using sendmai on Linux server then why Exim is present on server,now a days its very basic question for beginners…..

Category: E-mails issue  Comments off