-exim

  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View -exim as PDF for free.

More details

  • Words: 2,457
  • Pages: 11
Exim

Exim - The Mail Transfer Agent Exim is an open source mail transfer agent (MTA), which is a program responsible for receiving, routing, and delivering e-mail messages. MTAs receive e-mail messages and recipient addresses from local users, remote hosts and deliver the messages to their destinations. Exim was developed in 1995, by Philip Hazel at the University of Cambridge for the use of Unix systems connected over the Internet. The software feature more straightforward configuration and task management. Early MTAs were usually run as open relays, just routing and delivering mail without applying many rules or security controls. Exim features include user options for defense against mail bombs and unsolicited junk mail. Exim can be run on any TCP/IP network, in conjunction with any combination of host and user software, and is the default MTA included on most Linux systems. Each mail handled by Exim will have a unique message-ID. Most commands related to managing the queue and logging use these message-ids. Exim log files are stored in /var/spool/exim/msglog and are named the same as the message-id. Files in /var/spool/exim/input are named after the message-id.

Exim === Port:smtp 25 pop 110 Config:/etc/exim.confMail: /home/<username>/mail/domain /usr/lib/mailman /var/spool/mail Logs:/var/log/exim_mainlogs

root@dipu11161/~#telnet gittopaul.com 25 Trying 192.168.1.218... Connected to gittopaul.com. Escape character is '^]'. 220 dipu11161 ESMTP Exim 4.43 Wed, 13 Aug 2008 20:25:37 +0400 mail from:[email protected] 250 OK rcpt to:[email protected]

1 / 11

Exim

550-Verification failed for 550-Unrouteable address 550 Sender verify failed rcpt to:[email protected] 550 Sender verify failed data: 501 unexpected argument data To know the version of exim exim -bV Configuration file /etc/exim/exim.conf Configuration file /etc/exim/exim.conf exim -bpc : no of emails currently mail queue have exim -M email-id => Force delivery of one message exim -qf => Force another queue run exim -qff => Force another queue run and attempt to flush the frozen message exim -Mvl messageID => View the log for the message exim -Mvb messageID => View the body of the message exim -Mvh messageID => View the header of the message exim -Mrm messageID => Remove message without sending any error message exim -Mg messageID => Giveup and fail message to bounce the message to the Sender How many mails on the Queue exim -bpr | grep β€œ Lets use proper commands to deal with Exim. Working with Exim Mail Server - Exim Commands >> Count the number of messages in the queue. root@localhost# exim -bpc >> Listing the messages in the queue (time queued, size, message-id, sender, recipient). root@localhost# exim -bp >> Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals).

2 / 11

Exim

root@localhost# exim -bp | exiqsumm >> Check what Exim is doing right now. root@localhost# exiwhat >> Test how exim will route a given address. root@localhost# exim -bt [email protected] >> Display Exim's configuration settings. root@localhost# exim -bP >> Search the queue for messages from a specific sender. root@localhost# exiqgrep -f [luser]@domain >> Search the queue for messages for a specific recipient/domain. root@localhost# exiqgrep -r [luser]@domain >> Print messages older than the specified number of seconds. Eg: messages older than 1 hour. root@localhost# exiqgrep -o 3600 [...] >> Print messages younger than the specified number of seconds. Eg: messages less than an hour old. root@localhost# exiqgrep -y 3600 [...] >> Match the size of a message with a regex. Eg: Messages between 500-599 bytes. root@localhost# exiqgrep -s '^5..$' [...] >> Match only frozen messages. root@localhost# exiqgrep -z >> Match only frozen messages. root@localhost# exiqgrep -x >> Print just the message-id of the entire queue. root@localhost# exiqgrep -i >> Start a queue run. root@localhost# exim -q -v >> Start a queue run for just local deliveries. root@localhost# exim -ql -v >> Remove a message from the queue. root@localhost# exim -Mrm <message-id> [ <message-id> ... ]

3 / 11

Exim

>> Freeze a message. root@localhost# exim -Mf <message-id> [ <message-id> ... ] >> Thaw a message. root@localhost# exim -Mt <message-id> [ <message-id> ... ] >> Deliver a message, whether it's frozen or not, whether the retry time has been reached or not. root@localhost# exim -M <message-id> [ <message-id> ... ] >> Deliver a message, but only if the retry time has been reached. root@localhost# exim -Mc <message-id> [ <message-id> ... ] >> Force a message to fail and bounce as "cancelled by administrator". root@localhost# exim -Mg <message-id> [ <message-id> ... ] >> Remove all frozen messages. root@localhost# exiqgrep -z -i | xargs exim -Mrm >> Remove all messages older than five days (86400 * 2 = 172800 seconds). root@localhost# exiqgrep -o 172800 -i | xargs exim -Mrm >> Freeze all queued mail from a given sender. root@localhost# exiqgrep -i -f [email protected] | xargs exim -Mf >> View a message's headers. root@localhost# exim -Mvh <message-id> >> View a message's body. root@localhost# exim -Mvb <message-id> >> View a message's logs. root@localhost# exim -Mvl <message-id> >> Add a recipient to a message. root@localhost# exim -Mar <message-id>
[
... ] >> Edit the sender of a message. root@localhost# exim -Mes <message-id>


mail -v [email protected] [root@bludomain6 userhomes]# mail -v [email protected] Subject: test

4 / 11

Exim

dfdsfsd fdssdf. . Cc: . LOG: MAIN cwd=/var/cpanel/userhomes 5 args: send-mail -i -v . [email protected] LOG: MAIN <= [email protected] U=root P=local S=408 T="test" [root@bludomain6 userhomes]# LOG: MAIN cwd=/var/spool/exim 4 args: /usr/sbin/exim -v -Mc 1KVUAL-000206-90 delivering 1KVUAL-000206-90 LOG: MAIN ** [email protected]: Unrouteable address Connecting to ib1.charter.net [216.33.127.20]:25 ... connected SMTP<< 220 charter.net ESMTP server ready Tue, 19 Aug 2008 12:34:42 -0400 SMTP>> EHLO bludomain6.bludomain6.com SMTP<< 250-charter.net 250-HELP 250-VRFY 250-XREMOTEQUEUE 250-ETRN 250-PIPELINING 250-DSN 250-8BITMIME 250 SIZE 15728640 SMTP>> MAIL FROM: SIZE=1443 SMTP>> RCPT TO: SMTP>> DATA pop3 not working =========== have a VPS with WHM and cPanel installed, when I try to login to an email account I made in cPanel, I get this error message:Quote: POP3, Server Response: '-ERR Authentication failed (bad password?)' Couple questions for you. 1. Do you have root access to the box to run scripts? You can try running some fix scripts if you do. 2. Have you tried telneting to that pop3 server and logging in through the telnet session? There are many walkthroughs on the net on how to do this, just google it.

5 / 11

Exim

3. Are any other POP3 accounts having the same issue or is it just a specific account? If this is the case delete the account and recreate it. Also delete all of your temp files, including your temp internet files, on your PC. That will usually flush out any bad or garbled password files that are saved. prevent pop3 flood option active =================== mplement Chirpy's csf/lfd solution. I have opened a ticket with configservers; it was suggested to try the following commands. /scripts/updateuserdomains /scripts/mailperm killall -9 cppop /scripts/restartsrv cppop check for this and disable it cpanel does not need it /etc/xinetd.d/popa3d β€œIs not there.” service xinetd restart service cpanel restart domain name entries are available in /etc/localdomains and /ets/trueuserdomains files. if mail send not pop Is the mail spooling in the mail server?Try login to the WHM > Manage Mail Queue to check it out. /scripts/restartsrv cppop service exim restart exim -v -qff &

The mail server is up and is running fine. We confirmed it by sending and receiving mails between [email protected] (our test account) and the email account [email protected]. The mails were successfully delivered. The session logs are given below for your reference. We tried to send and receive mails from outlook express itself. We could not locate any issue.

6 / 11

Exim

We have configured outlook this way: Display Name : [email protected] Email Address : [email protected] Incoming Mail server (pop3) : mail.threesixes.com Outgoing mail server (smtp) : mail.threesixes.com Account Name : [email protected] Password : stabler Also check the column 'My server requires authentication'. 1. Step one is to check your Outlook Express settings, making sure that the POP3 and SMTP servers are as in the screen shots, and that your full user name and password are correct. Then try to connect again. 2. If the settings are fine, but you are still having problems test your connection by following this procedure: Logon to the Internet in the normal way. Click the START button, then RUN Type in cmd on Windows NT/2000/XP or command on Windows 95/98/ME. This opens a new window, with black text on a white screen, or the opposite. Type in the following command exactly as it appears. You will not see what you are entering so take it slowly, and if you make a mistake, start again. Now first type the following TELNET mailservername 110 and hit the Enter key, you will then be connected to the email server. Type in USER your_username and hit the Enter key. You will then get a message +OK Please enter your pass, with the PASS command Type in PASS your_password and click the Enter key. If it is correct, you will get an OK MAILBOX OPEN 3. If you can't get in this way either, it could be that your email password has somehow become corrupted. Try changing it in the domain manager. If you have just upgraded to use our web mail system, you will need to reset your email password once before start using it. Then try again and see if the Outlook Express error message vanishes. 4. Are you running anti-virus software or personal firewalls? If so disable them and try again. If the problem has vanished, configuration of these products could be the problem, particularly if they are set to automatically scan incoming and outgoing emails. 5. Are you running Windows XP? If so, disable the firewall there too and try again because the firewall function in XP is enabled by default. The basic checks have now been completed. If you are still getting this error message, there are two more drastic options to try. If you cannot even get connected to the Internet, then you will need to reinstall TCP/IP from scratch because some components of Windows has somehow become corrupted.

7 / 11

Exim

If you're still having problems, it could be that Outlook Express is itself corrupt. Microsoft's instructions on how to delete it and reinstall it, along with making a backup of your address books etc, are available for Windows 95, 98, and ME and for Windows 2000. You can refer the links http://support.microsoft.com/kb/191687 and http://forums.techarena.in/tags/index.php/0x800ccc0e/ for further details. Please check if everything works fine for you and if the issue persist, please do let us know the following details so that we can check the issue in detail. 1.The account which is having issue, with password. 2.Your IP address(get it from whatismyip.com). 3.The result of the commands "telnet domainmame.com 25" and "telnet domainmame.com 26". In case you have any further queries or troubles, please get back to us. We'll be right here 24x7 to help you out. Have a nice day. to create a mail account /scripts/addpop horde not working /tmp full df go to cd /tmp du -sch . then you can find that eventhough /tmp is not full, still showing /tmp full in df -h cd /var/lib/mysql touch mysql.sock chown mysql:mysql mysql.sock chmod 1777 mysql.sock now make a sym link into /tmp ln -s /var/lib/mysql/mysql.sock /tmp then chmod 1777 /tmp

8 / 11

Exim

/etc/init.d/mysql restart root@dime43 [/tmp]# cat /root/clear_tmp.sh lsof +aL1 /tmp | awk '{print $2}' | xargs kill -9 crontab -e * */5 * * * sh /root/clear_tmp.sh > /dev/null 2>&1

Hello, Error is only in horde. Squirrelmail and round cube are working fine. When errorlog checked, -----------------------------080901 8:31:39 [ERROR] /usr/sbin/mysqld: Can't find file: './horde/horde_sessionhandler.frm' (errno: 13) ------------------------------Then tried to dump the database. --------------------------------root@jet5 [/backup/cpbackup/weekly/dirs/_var_lib_mysql_]# mysqldump horde > horde.sql2 mysqldump: Got error: 1017: Can't find file: 'horde_sessionhandler' (errno: 2) when using LOCK TABLES ---------------------------------Then copied the directory "horde" to horde.bak. Tried for horde update. Then there showing error. ---------------------------------------Creating Horde database ERROR 1007 (HY000) at line 48: Can't create database 'horde'; database exists Updating Pear modules ...Done Horde updated to 3.1.7p7 Restoring previous Horde data ERROR 1146 (42S02) at line 13: Table 'horde.horde_datatree' doesn't exist ERROR 1146 (42S02) at line 14: Table 'horde.horde_datatree' doesn't exist

9 / 11

Exim

ERROR 1146 (42S02) at line 15: Table 'horde.horde_datatree' doesn't exist ERROR 1146 (42S02) at line 16: Table 'horde.horde_datatree' doesn't exist ERROR 1146 (42S02) at line 19: Table 'horde.horde_datatree_attributes' doesn't exist ERROR 1146 (42S02) at line 20: Table 'horde.horde_datatree_attributes' doesn't exist ERROR 1146 (42S02) at line 21: Table 'horde.horde_datatree_attributes' doesn't exist ERROR 1146 (42S02) at line 22: Table 'horde.horde_datatree_attributes' doesn't exist ERROR 1146 (42S02) at line 25: Table 'horde.horde_datatree_seq' doesn't exist ERROR 1146 (42S02) at line 26: Table 'horde.horde_datatree_seq' doesn't exist ERROR 1146 (42S02) at line 27: Table 'horde.horde_datatree_seq' doesn't exist ERROR 1146 (42S02) at line 28: Table 'horde.horde_datatree_seq' doesn't exist ERROR 1146 (42S02) at line 31: Table 'horde.horde_histories' doesn't exist ERROR 1146 (42S02) at line 32: Table 'horde.horde_histories' doesn't exist ERROR 1146 (42S02) at line 33: Table 'horde.horde_histories' doesn't exist ERROR 1146 (42S02) at line 34: Table 'horde.horde_histories' doesn't exist ERROR 1146 (42S02) at line 37: Table 'horde.horde_histories_seq' doesn't exist ERROR 1146 (42S02) at line 38: Table 'horde.horde_histories_seq' doesn't exist ERROR 1146 (42S02) at line 39: Table 'horde.horde_histories_seq' doesn't exist ERROR 1146 (42S02) at line 40: Table 'horde.horde_histories_seq' doesn't exist ERROR 1146 (42S02) at line 43: Table 'horde.horde_prefs' doesn't exist ERROR 1146 (42S02) at line 44: Table 'horde.horde_prefs' doesn't exist ERROR 1146 (42S02) at line 45: Table 'horde.horde_prefs' doesn't exist ERROR 1146 (42S02) at line 46: Table 'horde.horde_prefs' doesn't exist ERROR 1146 (42S02) at line 49: Table 'horde.horde_sessionhandler' doesn't exist ERROR 1146 (42S02) at line 50: Table 'horde.horde_sessionhandler' doesn't exist ERROR 1146 (42S02) at line 51: Table 'horde.horde_sessionhandler' doesn't exist ERROR 1146 (42S02) at line 52: Table 'horde.horde_sessionhandler' doesn't exist ERROR 1146 (42S02) at line 55: Table 'horde.horde_tokens' doesn't exist ERROR 1146 (42S02) at line 56: Table 'horde.horde_tokens' doesn't exist ERROR 1146 (42S02) at line 57: Table 'horde.horde_tokens' doesn't exist ERROR 1146 (42S02) at line 60: Table 'horde.horde_users' doesn't exist ERROR 1146 (42S02) at line 61: Table 'horde.horde_users' doesn't exist ERROR 1146 (42S02) at line 62: Table 'horde.horde_users' doesn't exist ERROR 1146 (42S02) at line 65: Table 'horde.horde_vfs' doesn't exist ERROR 1146 (42S02) at line 66: Table 'horde.horde_vfs' doesn't exist ERROR 1146 (42S02) at line 67: Table 'horde.horde_vfs' doesn't exist Resyncing Horde database items DBD::mysql::st execute failed: Table 'horde.horde_vfs' doesn't exist at /usr/local/cpanel/bin/horde_update_usernames line 39. ----------------------------------------------

moved the file horde_sessionhandler.frm and then created the table horde_sessionhandler. After that i got the error "Failed to write session data (sqlite)".

10 / 11

Exim

To fix this change the values for the following in /usr/local/cpanel/3rdparty/lib/php.ini. session.save_path session.save_handler It should be like session.save_handler = files session.save_path = /tmp

to see what accounts have the most emails in queue: ---------------------------------------------------exim -bp | exiqsumm | sort -nk1 pushes through all mail: -----------------------exiqgrep -q -v

11 / 11

Related Documents

-exim
July 2020 23
Exim 01mar04
December 2019 11
Exim Policies7
November 2019 13
Mandeep Exim
November 2019 15
Exim Bank
May 2020 12
Manual Exim
November 2019 9