Showing posts with label Mail. Show all posts
Showing posts with label Mail. Show all posts

Saturday, April 6, 2013

Read message from postfix queue


Reading message content on postfix queue
postcat -q MESSAGE_ID

To get "MESSAGE_ID" we can use "mailq" or "mailq | grep " where  is a e-mail address.

To delete a mail from queue use the command below:
postsuper -d MESSAGE_ID

To delete all deferred messages from queue:
 postsuper -d ALL deferred


To get ALL the MESSAGE_IDS of a particular e-mail address from queue:
 mailq|grep apache@vagrant2.vagrantweb.com|awk '{print $1}'

To delete ALL the mails from queue of a particular e-mail address:
for i in `mailq|grep apache@vagrant2.vagrantweb.com|awk '{print $1}'` ; do postsuper -d $i ; done

To delete ALL the mails from queue
postsuper -d ALL

Friday, July 27, 2012

configure the iPhone for your e-mail accounts

Source

To configure your iPhone (software version 1.x) for email, follow these steps:

  1. From the Dashboard, click Settings.
  2. Under Settings, select Mail.
  3. Select Add Account...
  4. Select Other as the type of account.
  5. Select POP.
  6. Enter the requested information:
    • Name: the name of the mail user
    • Address: the email address of the mail user
    • Description: a description of the mail user
    • Host Name: enter the mail server mail.yourdomain.com (incoming mail server and external mail server)
    • User Name: enter the full email address (incoming mail server and external mail server)
    • Password: enter the users password (incoming mail server and external mail server)
  7. Click Save.
  8. If you see a message that says "Cannot Connect Using SSL", click Yes when asked to setup the account without SSL.
  9. Click Save.
  10. Click Settings for the account you just created.
  11. Click Advanced.
  12. Set Incoming Uses SSL and Outgoing Use SSL to OFF.
  13. Under Incoming settings, click Authentication and select Password.
  14. Under Outgoing settings, click Authentication and select Password.

To configure your iPhone (software version 2.x) for email, please follow these steps:

  1. From the Dashboard, click Settings.

  2. Under Settings, select Mail, Contacts, Calendars.

  3. Select Add Account...
  4. Select Other as the type of account.

  5. Enter the requested information:
    • Name: the name of the mail user
    • Address: the email address of the mail user
    • Password: enter the users password (incoming mail server and external mail server)
    • Description: a description of the mail user
  6. Click Next.
  7. Click POP and enter the Incoming Mail Server information:
    • Host Name: enter the mail server address
    • User Name: enter the full email address
    • Password: enter the users password
  8. Scroll down and enter the Outgoing Mail Server information:
    • Host Name: enter the mail server address
    • User Name: enter the full email address
    • Password: enter the users password
  9. Click Save.
  10. If you see a message that says "Cannot Connect Using SSL", click Yes when asked to setup the account without SSL.
  11. The Advanced settings for the account will be displayed and do not need to be changed.
Source

Saturday, September 25, 2010

Exim Commands

Some useful Exim Commands

Queues information

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Print a count of the messages in the queue:
Quote:
# exim -bpc

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
Quote:
# exim -bp

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):
Quote:
# exim -bp | exiqsumm

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Generate and display Exim stats from a logfile:
Quote:
# eximstats /path/to/exim_mainlog

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Generate and display Exim stats from a logfile, with less verbose output:
Quote:
# eximstats -ne -nr -nt /path/to/exim_mainlog

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Generate and display Exim stats from a logfile, for one particular day:
Quote:
# fgrep 2007-02-16 /path/to/exim_mainlog | eximstats

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Print what Exim is doing right now:
Quote:
# exiwhat

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To delete frozen emails
Quote:
exim -bp | awk ‘$6~”frozen” { print $3 }’ | xargs exim -Mrm

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To deliver emails forcefully
Quote:
exim -qff -v -C /etc/exim.conf &

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To delete nobody mails
Quote:
exim -bp | grep nobody | awk ‘{print $3}’ | xargs exim -Mrm

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Searching the queue

Exim includes a utility that is quite nice for grepping through the queue, called exiqgrep. Learn it. Know it. Live it. If you’re not using this, and if you’re not familiar with the various flags it uses, you’re probably doing things the hard way, like piping `exim -bp` into awk, grep, cut, or `wc -l`.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Search the queue for messages from a specific sender:

Quote:
# exiqgrep -f [luser]@domain
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Search the queue for messages for a specific recipient/domain:
Quote:
# exiqgrep -r [luser]@domain
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Print just the message-id as a result of one of the above two searches:
Quote:
# exiqgrep -i [ -r | -f ] …
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Print a count of messages matching one of the above searches:
Quote:
# exiqgrep -c [ -r | -f ] …
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Print just the message-id of the entire queue:
Quote:
# exiqgrep -i
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Managing the queue, Start a queue run:
Quote:
# exim -q -v
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Start a queue run for just local deliveries:
Quote:
# exim -ql -v
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Remove a message from the queue:
Quote:
# exim -Mrm [ ... ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Freeze a message:
Quote:
# exim -Mf [ ... ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thaw a message:
Quote:
# exim -Mt [ ... ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Deliver a specific message:
Quote:
# exim -M [ ... ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Force a message to fail and bounce:
Quote:
# exim -Mg [ ... ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Remove all frozen messages:
Quote:
# exiqgrep -z -i | xargs exim -Mrm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Remove all messages older than five days (86400 * 5 = 432000 seconds):
Quote:
# exiqgrep -o 1296000 -i | xargs exim -Mrm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Freeze all queued mail from a given sender:
Quote:
# exiqgrep -i -f luser@example.tld | xargs exim -Mf
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
View a message’s headers:
Quote:
# exim -Mvh
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
View a message’s body:
Quote:
# exim -Mvb
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
View a message’s logs:
Quote:
# exim -Mvl

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews