Mail

Postfix masquerading or changing outgoing SMTP email or mail address

/etc/postfix/main.cf:

smtp_generic_maps = hash:/etc/postfix/generic

/etc/postfix/generic:

tom-01@server01.hosting.com tom@domain.com

# postmap /etc/postfix/generic
# /etc/init.d/postfix restart

source

By WladyX on 10 March, 2010 | General, Mail | A comment?

Zimbra: Transport Table for external servers

Dovecot convert plugin from mbox to Maildir

Delete Postfix Mail Queue

postsuper -d ALL

Remove Duplicate Emails with Mutt

Just do a tag-pattern (bound to T here), put in ~= as the pattern, then all duplicates will be tagged. After that, you can delete tagged messages (bound to ;d, or just d if you have $auto_tag=yes).

source

Zimbra upgrade

Not tested (yet)!

1. stop zimbra
1a. check if every process is really stopped. don’t want to see stalled mysql or something – happened to me once
2. tar zimbra installation folder
3. tar /var/lib/rpm !!! (I forget often to do this)
4. START ZIMBRA!!! (else upgrade could fail)
5. upgrade
6. if everything works, delete backups, else untar and try again

Source

By WladyX on 22 January, 2010 | General, Mail, Zimbra | A comment?

Mailman: message has implicit destination

Alternatively, if you want to accept all BCCs to the list and get rid of this message entirely, go to Privacy Options / Recipient Filters and set the require_explicit_destination option to be “No”. This should be the first option on the page, and by default, Mailman will set this option to be “Yes”.

http://wiki.list.org/pages/viewpage.action?pageId=4030676

By WladyX on 9 December, 2009 | General, Mail | A comment?

Canonical Address in Zimbra GAL

zmprov mcf -zimbraGalLdapAttrMap zimbraMailDeliveryAddress,zimbraMailAlias,mail=email,email2,email3,email4,email5,email6,email7,email8,email9,email10,email11,email12,email13,email14,email15,email16

zmprov mcf +zimbraGalLdapAttrMap zimbraMailCanonicalAddress,mail=email

zmprov fc config

http://chen23.com/docs/zimbra/custom_address_in_gal/

Postfix and Dovecot with StartSSL certificates

Dovecot:

% cat ssl.crt sub.class1.server.ca.crt > /etc/ssl/dovecot/certs/dovecot.pem
% cp ssl.key /etc/ssl/dovecot/private/dovecot.pem
% cp ca-bundle.crt /etc/ssl/apache2/

dovecot.conf:

ssl_cert_file = /etc/ssl/dovecot/certs/dovecot.pem
ssl_key_file = /etc/ssl/dovecot/private/dovecot.pem
ssl_ca_file = /etc/ssl/apache2/ca-bundle.crt

http://nooms.de/articles/startssl.html

Postfix:

% mv ssl.crt cert.pem
% mv ssl.key key.pem

main.cf:

## TLS parameters ##

smtpd_use_tls=yes
smtpd_tls_cert_file=/etc/ssl/postfix/cert.pem
smtpd_tls_key_file=/etc/ssl/postfix/key.pem
smtp_tls_CAfile = /etc/ssl/apache2/ca.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

http://forum.startcom.org/viewtopic.php?t=80

By WladyX on 9 November, 2009 | General, Mail, Security | A comment?

Test imaps