Discussion:
postcat, multi-instance setup
(too old to reply)
cite+ (Stefan Foerster)
2010-06-10 04:16:32 UTC
Permalink
I'm most likely doing it wrong:

$ postmulti -i postfix-out -x mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1BCBD1DF86 2622 Mon Jun 7 03:02:34 boskop-svn-bounces+trac=***@lists.incertum.net
(connect to trac.incertum.net[85.214.20.182]:25: Connection refused)
***@trac.incertum.net

-- 3 Kbytes in 1 Request.
$ postmulti -i postfix-out -x postcat -q 1BCBD1DF86
postcat: fatal: open queue file 1BCBD1DF86: No such file or directory

Apart from my obvious fault (wrong mail routing which led to the
mail's deferral) - how do I actually access the contents of this
file?


Stefan
cite+ (Stefan Foerster)
2010-06-10 04:28:15 UTC
Permalink
Post by cite+ (Stefan Foerster)
$ postmulti -i postfix-out -x mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
(connect to trac.incertum.net[85.214.20.182]:25: Connection refused)
-- 3 Kbytes in 1 Request.
$ postmulti -i postfix-out -x postcat -q 1BCBD1DF86
postcat: fatal: open queue file 1BCBD1DF86: No such file or directory
Apart from my obvious fault (wrong mail routing which led to the
mail's deferral) - how do I actually access the contents of this
file?
Since somebody is going to ask this question: 2.7.

$ postmulti -i postfix-out -x postconf -n
alias_database =
alias_maps =
authorized_submit_users = root
config_directory = /etc/postfix-out
data_directory = /var/lib/postfix-out
local_header_rewrite_clients =
local_recipient_maps =
local_transport = error:5.1.1 Mailbox unavailable
master_service_disable =
multi_instance_enable = yes
multi_instance_group = mta
multi_instance_name = postfix-out
mydestination =
mydomain = incertum.net
myhostname = edge.kvm.incertum.net
mynetworks = 127.0.0.0/8, 192.168.122.0/24, 85.214.20.182/32,
85.214.107.53/32
myorigin = $mydomain
parent_domain_matches_subdomains =
queue_directory = /var/spool/postfix-out
receive_override_options = no_unknown_recipient_checks
recipient_delimiter = +
relay_destination_concurrency_limit = 4
smtp_helo_name = mail.incertum.net
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_loglevel = 1
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_session_cache_timeout = 24h
smtpd_authorized_xforward_hosts = $mynetworks
smtpd_client_connection_count_limit = 0
smtpd_client_event_limit_exceptions = $mynetworks
smtpd_recipient_restrictions = permit_mynetworks, reject
smtpd_timeout = 1200s
transport_maps = cdb:/etc/postfix/transport_maps


Stefan
Victor Duchovni
2010-06-10 12:27:24 UTC
Permalink
Post by cite+ (Stefan Foerster)
Post by cite+ (Stefan Foerster)
$ postmulti -i postfix-out -x mailq
This is correct.
Post by cite+ (Stefan Foerster)
Post by cite+ (Stefan Foerster)
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
(connect to trac.incertum.net[85.214.20.182]:25: Connection refused)
-- 3 Kbytes in 1 Request.
Where was this file found?
Post by cite+ (Stefan Foerster)
Post by cite+ (Stefan Foerster)
$ postmulti -i postfix-out -x postcat -q 1BCBD1DF86
postcat: fatal: open queue file 1BCBD1DF86: No such file or directory
Apart from my obvious fault (wrong mail routing which led to the
mail's deferral) - how do I actually access the contents of this
file?
First see whether "postcat -c /etc/postfix-out -q 1BCBD1DF86" does the job
and then whether "MAIL_CONFIG=/etc/postfix-out postcat -c -q 1BCBD1DF86"
works. If both work, but "postmuli -i postfix-out -x ..." does not, use
"strace -af" (or equivalent truss/ktrace/dtruss/...) to check that the
right environment and arguments are passed from postmulti and that it
executes the expected "postcat" binary.
Post by cite+ (Stefan Foerster)
Since somebody is going to ask this question: 2.7.
$ postmulti -i postfix-out -x postconf -n
config_directory = /etc/postfix-out
data_directory = /var/lib/postfix-out
queue_directory = /var/spool/postfix-out
This looks good.
--
Viktor.
Loading...