Fetchmail + Postfix - can't make them work together

in flag

Task is the following: There is a mail server in a secure zone with no access to Internet and/or other networks. I need to relay contents of one of the mailboxes to Amazon SES for delivery. I set up Fetchmail to grab mails from the said server. I set up Postfix to relay mail to AWS.

Fetchmail ingests the mails. If I try to send out a test mail with Postfix - it works fine. But it doesn't send out mails that are downloaded by Fetchmail.

Fetchmail config:

set daemon 300
set logfile /var/log/fetchmail
set postmaster root

set no bouncemail

timeout 300
antispam -1
batchlimit 100

  protocol IMAP
  port 993
  user "[email protected]" there is mailer here
  password p@$$W0RD
  nofetchall keep ssl
  smtpaddress localhost

Postfix config:

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
compatibility_level = 2

smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname =
mydomain =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination =, $myhostname, localhost.localdomain, localhost
relayhost = []:587
relay_domains = $mydomain
mynetworks = [::ffff:]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/ses
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
jp flag
Check your logs.
in flag
this is the first thing I did. Nothing of value there. Records of mail being successfully ingested by fetchmail and for postfix - test mails only are logged.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.