From popdata
Jump to: navigation, search

Back to Systems

Zimbra Email & MTA PostFix & AMAVIS anti-virus on Verrazzano

  • runs on host verrazzano
  • start: /etc/init.d/zimbra start
  • stop: /etc/init.d/zimbra stop
  • logs: /var/log/mail.log , /opt/zimbra/log/

Around 2011-12-14, some windows workstations were accumulating multiple TCP connections to Zimbra server Verrazzano (80, 443 in addition to IMAPs), such that "netstat --tcp" shows over 900 connections. .. See on Verrazzano ~dlaplante/bin/

  • [commented out of zimbra crontab] daily cleanup of connection counts at 4am: /opt/zimbra/bin/zmmailboxdctl restart
    • 2013-03-06 SysPulse graph of Verrazzano connections shows typically a daily wave between 60 and 170 connections, where the daily 4am interruption is quickly regained. This suggests the connections are all active connections, which get re-attached by the clients. The important thing is that there is no longer accumulation of connections over the course of the week.

Spam blacklists

  • 2017-10-05 to 24th compromised account was used to pump millions of spam OTRS#2017102410000083. Verrazzano blocked by many, especially Yahoo & Outlook OTRS#2017110610000043
  • Lookup
    2017-11-07 all ok
    2017-11-07 all but 1 ok. A lot of tests; most failures (red) due to "DNS request failed:"; Bottom section: "DNSBL Informationallist Test" non-blocking listings (blue)
    FCrDNS means "Forward Confirmed reverse DNS" i.e. lookup by name matches lookup by address.
  • Microsoft/Hotmail/Outlook spam feedback
  • Subscribed using birthdate 1988-02-07 . Company Name: Population Data BC; Contact email address:; Complaint feedback Email format=ARF;; Authorization email (from WHOIS):
    • When you submit this form, two things will happen: 1- We will send email messages to each of the above authorization addresses, with an authorization link. Once the links have been clicked, you will be able to view data for those IPs in SNDS. 2- We will send a contract to the contact address above, so that you or an appropriate representative from your company can sign the agreement. After you have been authorized to view IP data, and have signed the contract, JMRP feedback complaints will start flowing to the complaint address provided above.
    • 2018-02-07/DL JMRP often not working (We're sorry! An error has occurred), but SNDS is ok at . "Access Control" link confirms that is being monitored, nothing bad yet. JMRP may or may not be set up send an ARF [Abuse Reporting Format] message for each flagged email, max 10 per day.

Zimbra queues

Zimbra user management

  • Login to and under "Manage => Accounts" select a user (right-click)
  • Login to Verrazzano
    • To get password change date
      sudo /home/zimbra/bin/zmprov sa -v "mail=*" | egrep '^uid: |zimbraAccountStatus: |zimbraPasswordModifiedTime: |zimbraLastLogonTimestamp: '
      then join all lines starting with 'z' to the previous line.
      2017-10-31 DL see Alfresco/Systems & Security/Mail/zimbra-popdata-password-time-status.txt
  • Change encryption options for MTA, IMAP and POP
    • Configure => Global Settings => {MTA, IMAP, POP} "[no] Enable clear text login" . Warning: require server restart.

Sometime in late 2017 Denis configured Zimbra to lock out accounts with more than 10 bad password guesses. The lockout resets itself after 1 hour. This slows down systematic guessing attempts to 200 per day (except guessers can't tell whether they got the wrong password or triggered the lockout). If a smartphone with wrong password keeps trying it could also trigger a lockout. 2018-03-21 Time and Kelly's account in "Lockout" status. Need to check logs

Zimbra security configuration

  1. under Class Of Service (COS) -> Default -> Advanced
    • Password min lenght 16, max 64
      Other restrictions 0 (Ex: minimum count of UC / digit / special)
  2. TLS only (encryption)
    • Servers =>
      -> MTA : [yes] "TLS authentication only" [good]
      -> IMAP or POP : [no] "enable clear text login"
  3. Login Lockout is enabled
    • Home -> Configure -> Class Of Service (COS) -> Default -> Advanced -> Failed Login Policy
    • 2017-10-25 (default) 10 failures in 1 hour, lockout for 1 hour (240 guesses/day)
      2018-11-22 plan change to 5 failures per 15m (480 guesses/day), lockout 15m to reduce frustration
  • Resetting lockout
    1. zimbraAdmin -> Manage -> Accounts ; sort by Status
    2. open user -> half-way down 'Account Setup" -> Status: Active / Closed / Locked / Pending / Maintenance . Lockout cannot be chosen on the status menu.
  • See also Advanced -> Failed Login Policy for user customization

Zimbra Calendar

  • need to grant write access to popdata-events caalendar for new users
  • Using another account's calendar:
    • Zimbra webmail, select tab "Calendar"; in sidebar right-click on "Calendars", select “Find Shares”. Neither search box works, just scroll. If you get denied access, ask IT staff.
    • Microsoft Outlook 2010: from Zimbra tab, click "open other mailbox", select "Popdata BC"

Zimbra Clients - Web, Outlook, Thunderbird, Apple Mail ...

Outlook: connector for Zimbra

zimbra connector for Outlook (32-bit)

Ann Greenwood having trouble - on her desktop with new connector, only the top level folder (Inbox) gets udpated. Subfolders of Inbox are visible, but have no new content since her crash and reinstall. suggests

  • review folder "Sync Issues" (does not exist)
  • run the .msi file again and select Repair


Thunderbird AddressBook / LDAP

Menu Edit=>Account=>Composition&Addressing=>Use a different LDAP server

Name: PD-ldap
Base DN: ou=users,dc=popdata,dc=bc,dc=ca
Port Number: 389
[no] use SSL (I don't understand why SSL fails.  Test: Tools=>Address book; select PD-ldap. type a name)
Thunderbird Calendar - Lightning

Don't remember how I installed it under Ubuntu. Shows in aptitude as: installed: xul-ext-lightning 1.9+build1-0ub

DNS MX records

Inside DNS records on Champlain

  • MX ( Verrazzano...)
  • MX ( Champlain ...)

Outside DNS records on

  • MX ( Verrazzano...)
  • MX ( Champlain ...)
  • SPF anti-spam records: others should accept only from Verrazzano or Champlain TXT "v=spf1 ip4: ip4: ~all"

SPF records for RedCAP emails from PopData servers.

Diagnostic: get TXT records (ncluding spf) from google DNS server for host -t txt

  • 2019-05-22 SPF record for still missing Champlain's IP address.
    • TXT "v=spf1 -all" TXT "v=spf1 ip4: ip4: [...] -all" 293 IN TXT "v=spf1 ip4: [..] ip4: ip6:2001:489a:2202::/48 -all"
  • Interpretation: emails from should only be accepted if coming through servers on DNS TXT SPF list for
    • Need to change DNS record to "v=spf1 ip4: -all"

History: 2019-01-07 blocked message sent from via Champlain

  • From: Mail Delivery Subsystem <>
    Sent: Monday, January 7, 2019 2:55 PM
    To: REDCap
    Subject: Undeliverable: BC AHSN REDCap Service Agreement - Resolution
    The original message was received at Mon, 7 Jan 2019 14:54:51 -0800 from []
    ----- The following addresses had permanent fatal errors ----- <>
    (reason: 550 Message was blocked by server (failed SPF))
    ----- Transcript of session follows ----- ... while talking to
    >>> MAIL From:<>
    <<< 550 Message was blocked by server (failed SPF)
    554 5.0.0 Service unavailable

SYMPA distribution lists on Champlain

  • Version Sympa 6.2.16 since ?? 2018-12-13
  • config: /etc/sympa/sympa.conf ; home: /var/lib/sympa/expl ; spool /var/spool/sympa;
  • syslog: /etc/sympa/facility (local0) => cabot:/home/logs/*/champlain/local0
  • 2013-07-02 changing config of "subscribers@lists..." via web to "noconceal" triggers "missing parameter". Normal is "conceal".
  • To add a subscriber: email From: To: Subject: quiet add sre-users EMAIL FIRSTNAME LASTNAME (userid)
    • This is done automatically when registering a new SRE project login (pds/radm/ function enable_group ).