*****************************************************************************************************************************

To find the no of ips in any log

cut -d" " -f1 /etc/httpd/logs/access_log* | sort | uniq -c | sort -bnr | more

http://www.exim.org/exim-html-4.10/doc/html/FAQ_0.html

(1) Could not complete sender verify

When you attempt to send mail to someone the recipient never receives the mail. The mail is eventually bounced back to you wit
h an error similiar to those below

550 Could not complete sender verify callout

550 Sender verify failed

CAUSE:

Some mail servers attempt to validate the sending email address before accepting any mail. They do this by issuing a RCPT TO c
ommand to the sending mail server with the senders email address. If the sending mail server responds with a 250 command then
they know the sending email address exists and therefore accept the message.

If they are unable to verify the sender then they issue a response similiar to that above.

Solution
Check your /etc/exim.conf and comment this:
Code:

require verify = sender

After the changes don't forget to restart the exim service.

remove /etc/eximmailtrap
*: :fail: no such user here
*: :fail: no such address here
*: :blackhole:
(2) Unable to append to /usr/sbin/mailmon.log: Permission denied
BEGIN failed--compilation aborted at /usr/sbin/sendmail line 81.

Solution
comment the lines after DBI /usr/sbin/sendmail


chmod 755 /usr/sbin/mailmon.log

(3) Mail not functioning in server.

Solution
Comment the entries mail scan in exim.conf file
(4)How to check pop is working

telnet domainname.com 110
Trying ip...
Connected to domainname.com.
Escape character is '^]'.
+OK POP3 server [cppop 20.0] at [ip]
user user@domainname.com
+OK Need a password
pass password

(5) 503 valid RCPT command must precede DATA

Take spamdatabase look up in dnsstuff.com

and also

503 valid RCPT command must precede DATA
If you get this error when sending email:

The server responded: 503 valid RCPT command must precede DATA

Try this solution:

Means you must check your email before trying to send mail. The mail server requires authentication, which can be achieved usi
ng one of these methods:

1. Pop before smtp -- check your email for new mail before trying to send email. This adds your IP address to a relayhosts fil
e and allows any email to be sent from that IP address for up to 30 minutes. After 30 minutes you have to authenticate again.

2. Configure your email client to authenticate automatically by checking the "my server requires authentication" box in your e
mail configuration. You will be able to send mail without having to "pop" your mail box first.

(6) 503 No recipient(s)
solution

Make sure SMPT authentication is turn on in the out look configuration.

(7) clamd error (mails not working)

*************************************************************

tail -50 /var/log/exim_mainlog|grep "clamd: unable to connect to UNIX socket"
if [ $? -eq 0 ];then
mail -s "EMERGENCY clamd down on `hostname`" shared@logicsupport.com </scripts/clamdmail
fi
*************************************************************

 

 

whm >> addon modules

 

Clam AV

ClamAv

http://easynews.dl.sourceforge.net/sourceforge/clamav/clamav-0.80.tar.gz

groupadd clamav

useradd -g clamav clamav

tar -xzvf clamav-0.80.tar.gz
./configure
make
make check
make install
/scripts/restartsrv clamd
or
#/usr/local/sbin/clamd&

if the below error occur while this is running
ERROR: Please edit the example config file /usr/local/etc/clamd.conf.
ERROR: Can't open/parse the config file /usr/local/etc/clamd.conf

Please comment the line Example

(8) error ERR Too many connections from your IP address (reached max connections)

(a) In exim.conf file smtp_accept_max_per 0 (unlimited)
(b) in tweak settings increase the value to 500 from 200 The maximum each domain can send out per hour (0 is unlim
ited)
(c) diable Attempt to prevent pop3 connection floods in tweak settings

In exim.conf file
We can increase the limit of the mails sent. The error was in the smtp_accept_max_per_host option restricts the number of simu
ltaneous IP connections from a single host (strictly, from a single IP address) to the Exim daemon. Once the limit is reached,
additional connection attempts are rejected.

http://www.exim.org/exim-html-4.10/doc/html/FAQ_0.html

Scripts to delete nobody, Mail Delivery System, 'X-Spam-Status: Yes,Mail delivery failed mails from the mail queue.

grep -lr 'nobody@' /var/spool/exim/input/ | \sed -e 's/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g' | xargs exim -Mrm

grep -rl 'From: Mail Delivery System' /var/spool/exim/input/ | \sed -e 's/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g' | xargs exim -Mrm

grep -rl 'X-Spam-Status: Yes' /var/spool/exim/input/ | \sed -e 's/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g' | xargs exim -Mrm

grep -rl 'Subject: Mail delivery failed' /var/spool/exim/input/ | \sed -e 's/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g' | xargs exim -
Mrm
&&&&&&&&&&&&&&&&&&&&&&&&
error

defer (-1): All deliveries are handled by MailScanner

solution

/scripts/buildeximconf
&&&&&&&&&&&&&&&&&&&&&&&&
horde error
(a) repair database horde
(b) take the backup of database horde and run the script ( address book will empty)
/scripts/resethorde
or
/usr/local/cpanel/bin/updatehorde --force
(c) repair database through whm

(d) error while login to horde
Notice: Unknown(): [CLOSED] IMAP connection broken (server response) (errflg=1)
in Unknown on line 0

Solution
/scripts/courierup --force

common squirrelhorde error
http://www.webhostingtalk.com/archive/index.php/t-233378-p-1.html

&&&&&&&&&&&&&&&&&&&&&&&&
error while login to default account

Notice: Unknown(): Login failed. (errflg=1) in Unknown on line 0

Notice: Unknown(): Login failed. (errflg=1) in Unknown on line 0

Notice: Unknown(): Login failed. (errflg=1) in Unknown on line 0

Notice: Unknown(): Too many login failures (errflg=2) in Unknown on line 0

solution

reset cpanel password
****************************************************************************************************
squirrelmail error

1) after login to squirrel mail an error is showing at the left part instead of
listing folders. The error is given below.

================================
ERROR: Could not complete request.
Query: SUBSCRIBE "sent-mail"
Reason Given: SUBSCRIBE failed: Already subscribed to mailbox sent-mail

And, if we go to the Folders link at the top of the page, we get:
Rename a Folder
No folders found

Delete Folder
No folders found

Unsubscribe/Subscribe
No folders were found to unsubscribe from! No folders were found to subscribe
to!
================================

2) Folders are not displaying in squirrel mail
****************************************************************************************************
(e) A fatal error has occurred
Could not connect to database for SQL SessionHandler.
Details have been logged for the administrator.

solution

/usr/local/cpanel/bin/updatehorde --force
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

mbox and maildir format we are using mbx format
http://www.courier-mta.org/mbox-vs-maildir/
mbox mail storage format

This is the traditional way to store mail on UNIX-based mail servers. Individual messages are simply concatenated together
, and saved in a single file. A special marker is placed where one message ends and the next message begins. Only one process
can access the mbox file in read/write mode. Concurrent access requires a locking mechanism. Anytime someone needs to update t
he mbox file, everyone else must wait for the update to complete.

maildir mail storage format

Maildirs were originally implemented in the Qmail mail server, supposedly to address the inadequacies of mbox files. Indiv
idual messages are saved in separate files, one file per message. There is a defined method for naming each file. There's a de
fined procedure for adding new messages to the maildir. No locking is required. Multiple processes can use maildirs at the sam
e time.
******************************************************************************************************************************
Request to cpanel and their reply regarding maildir mail storage format as issue is given below.

Hello,

Previously we were able to access all the email accounts under my domain
through the horde of default mail account. i.e when I login to my default mail
account through horde, under the mail option in the left handside we were able
to see all the other email accounts under the domain. Now our account is
transferred to a new server which is having maildir format for mail accounts.
Previously it was mbox format on the old server.
Now we are not able to view/access the other email accounts of the domain in
the same way as stated above. That function is not found to be enabled in
maildir format.

It will be appreciated if you help us in resolving the issue. Please let us
know where we could enable this option in the default mail accounts.

 

 

Click on horde
Click on login
Open the Mail node

 

Samual,

Unfortunately this feature is not available with the new courier-imap/maildir
configuration. This feature was specific to the uwimap service, which was
phased out in favor of the courier-imap/maildir configuration.

If you have any further questions or concerns you would like me to address,
please let me know.
--

Regards,
Stephen Bee
Technical Support
cPanel
++++++++++++++++++++++++++++++++++++++++
script to convert maildir to mbox

#!/bin/bash
for file in `find /Users/drfu/{current.mdir,new.mbox}/ -type f`
do
cat $file | formail >> mbox
done
+++++++++++++++++++++++++++++++++++++++++

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
email account is not listing in cpanel

Solution

check the entries in the following files
root@venus [/home/cnvep/etc/cnvep.org]# grep -rl test *
passwd
passwd,v
quota
quota,v
shadow
shadow,v

if not add it.

Or recreate teh mail address after taking the backup of the mail folder of the account.
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
mailbox full reason
http://bearmail.missouristate.edu/helpdesk/fullmailbox.htm
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

error DBD::mysql::db do failed: Got error 127 from table handler at /usr/sbin/sendmail line 114

solution

$cpan
cpan> get DBD::mysql
(This should download the DBD module
cpan> quit

$ cd /home/.cpan/build or cd /root/.cpan/build
$ cd DBD-mysql-3.0002
$ perl Makefile.PL
$ make && make install
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
error

addon domains don't always appear in add mail account screen

solution
Check /var/cpanel/users/username for the appropriate entry for the addon domain.
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

inbox lock

common cause and the reply.

It has been found that you are running more than one instance of email client simultaneously. This is creating a lock file tha
t disables further access. If you are sure that you are not acessing your mail account in no more than one instance, please ch
ange your mail password from cPanel and then intimate us so that we can remove the lock and then you will be able to access it
without any issue.

 

For your information, it happens like this. You open your mailbox from one location and you happen to open it at another locat
ion also. What happens if you delete or send a mail from one side? At the other side, it will not be updated and this can be a
mess on the server. To eliminate this from happening, the server creates a lock if you happen to access mail from one side an
d only after logging out of this, the lock will be removed.

 

Here are some things that can cause the inbox.lock files on your account:

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.

If you email us, we can remove the lock for you but if you are checking email at less than 3 minute intervals, it will continu
e to happen.

2. multiple e-mail addresses are forwarding to that account

3. mail account receives thousands of messages in a day

the problem occurs when a client opens webmail while Outlook Express is collecting email

60 * * * * find /home/*/mail -iname '*.lock' -exec rm '{}' ';'
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
how can i change max mail upload
NeoMail: Maximum Attachment Size is 2Mb, how can i change it to 10Mb?

/usr/local/cpanel/etc/neomail.conf set variable $attlimit = 10;
neomail

we can take neomail directly with the following url

http://domainname.com:2095/neomail/neomail.pl
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
email wrong Disk Used

http://forums.cpanel.net/showthread.php?t=59000&highlight=email+wrong+Disk+Used

Remove the "maildirsize" file from each email users directory in

/home/username/mail/domain.com/user/maildirsize

permanenet fix from cpanel

=====================================
find /home/*/mail -name maildirsize -exec rm -f {} \;

/scripts/upcp --force

/scripts/generate_maildirsize --force
=====================================

Then login cPanel again or refresh the page and it should restore the quota to the correct size. Do the same for any Accounts
having this issue.

/home/user/.cpanel-datastore/diskusage_EMAIL will shows the email account usage

or from this file the email account usage is displayed in cpanel
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
creation of files bayes_toks. files under /home/user/.spamassassin folder

solution
put the below entry at the last of file /etc/mail/spamassassin/local.cf
bayes_auto_expire 0
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

to find the no of mails resides in each account

exim -bp |exiqsumm
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
cgi email

You can install and configure cgi email using your cpanel. Open your cpanel and go to the following options. Here you can find
the methods to install cgi emails.

CGI Center -> CGI EMail

Please refer the following URL for more information on this.

http://web.mit.edu/wwwdev/cgiemail/user.html
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

adding maximum upload limit to mail in exim.conf file

add this in exim.conf

message_size_limit=70M
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&