Tag archive for ‘mail’

Failed domain creation: mailmng failed

If you receive “virtual.db: No such file or directory” error message while adding a domain in Plesk control panel, you need to create the virtual.db file and place it in the proper location. The complete error message looks like: Failed domain creation: Unable to update domain data: mailmng failed: Fatal error: plesk::mail::postfix::PostfixConfigurationError(postmap:fatal:open database /var/spool/postfix/plesk/virtual.db: No [...]

Linux : How to export public key for others/friends or your recipients

1) Login to your shell account 2) Use –export option to export your public key in text file $ gpg –export –a > my.key OR $ gpg –export -a | mail -s “My key” friend@domain.com Where -a –armor : Create ASCII armored output. –export : Export the key for sharing First command write output to [...]

Delete Frozen Emails

Howto check number of emails in the mail queue: exim -bpc To check the email ID, sender and receiver of the each email: exim -bp | more To delete frozen emails from the mail queue, execute: exim -bp | grep ‘frozen’ | awk ‘{print $3}’ | xargs exim -Mrm similarly, to delete emails sent using [...]

Exim mail queue clear

To clear SPAMS and unwanted mails from the mail queue   exim -bp | awk ‘$6~”frozen” {print $3 }’ | xargs exim -Mrm 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/ [...]

To get a copy of every mail

To get a copy of every mail send from a mail , to someaddress@somedomain.com Add the following to etc/exim.filter if $sender_address contains “@somedomain.com“ then unseen deliver “someaddress@somedomain.com“ endif Incoming search terms:directadmin copy email (1)linux get copy of every email sent (1)

Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV) part1

Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV) Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Last edited 10/05/2005 This tutorial is Copyright (c) 2005 by Falko Timme. It is derived from a tutorial from Christoph Haas which you can find at http://workaround.org. You are free to [...]

Using iRedMail And OpenVPN For Virtual Email Hosting And VPN Services (CentOS 5.4)

iRedMail is a shell script that lets you quickly deploy a full-featured mail solution in less than 2 minutes. iRedMail supports both OpenLDAP and MySQL as backends for storing virtual domains and users. This tutorial shows you how to integrate OpenVPN into iredmail’s ldap backend on CentOS 5.x, Let openvpn auth OpenLDAP,passwords will be stored [...]

Sending email or mail with attachment from command or shell prompt

If you are looking to send email with attachment via shell script or at shell prompt/command line (read as bash prompt), use mutt command. Mutt is a small but very powerful text based program for reading electronic mail under UNIX /Linux operating systems, including support for color terminals, MIME, and a threaded sorting mode. Please [...]

Moving Mdaemon Mail to New Server

In order to move MDaemon to a new machine you should first remove the MDaemon service. To remove MDaemon as a service Go to Setup Click on System Service Settings Click on Remove Service Open Windows Explorer and navigate to your MDaemon directory. Make a backup of the entire directory. Make a note of the [...]

How To Use Gmail Account To Relay Email From a Shell Prompt

Usually, you do not need to setup an email server under Linux desktop operating system. Most GUI email clients (such as Thunderbird) supports Gmail POP3 and IMAP configurations. But, how do you send mail via the standard or /usr/bin/mail user agents or a shell script? Programs such as sendmail / postfix / exim can be [...]