I'm trying receive emails to acknowledge-<stuff>@CUSTOMERWEBSITE.com by way of
a virtual(8) domain and then get local(8) delivery using an aliases(5) config
with its | command processing.

Issue is that the loader program (/usr/local/bin/forwardstdin below) we are
using is reporting zero bytes read on standard input.  Wondering what I've got
misconfigured.

/etc/postfix/virtual config line:
#
# response redirection
#
acknowle...@customerwebsite.com acknowledge


/etc/aliases config line:
acknowledge:            "|/usr/local/bin/forwardstdin
admin.CUSTOMERWEBSITE.com 80 /servlet/CUSTOMERWEBSITE.emailstatus"


Log showing in-bound email processing:

Nov 18 16:26:52 mail0 postfix/smtpd[5345]: 76BB12007F0:
client=CLIENT_IP.hsd1.mn.comcast.net[CLIENT_IP], sasl_method=PLAIN,
sasl_username=boylan
Nov 18 16:26:52 mail0 postfix/cleanup[5339]: 76BB12007F0:
message-id=<17f2ba10-8017-44b8-8499-ead910423...@gmail.com>
Nov 18 16:26:52 mail0 postfix/qmgr[5234]: 76BB12007F0:
from=<test_em...@gmail.com>, size=997, nrcpt=1 (queue active)
Nov 18 16:26:52 mail0 postfix/local[5340]: table
hash:/etc/aliases(0,lock|no_regsub|no_proxy|no_unauth|fold_fix) has changed --
restarting
Nov 18 16:26:52 mail0 postfix/local[5341]: table
hash:/etc/aliases(0,lock|no_regsub|no_proxy|no_unauth|fold_fix) has changed --
restarting
Nov 18 16:26:52 mail0 postfix/local[5346]: 76BB12007F0:
to=<acknowledge-xnycyqfbrimmy...@actualsoftware.com>,
orig_to=<acknowledge-xnycyqfbrimmy...@customerwebsite.com>, relay=local,
delay=0.42, delays=0.37/0.04/0/0.01, dsn=2.0.0, status=sent (delivered to
command: /usr/local/bin/forwardstdin admin. CUSTOMERWEBSITE.com 80
/servlet/CUSTOMERWEBSITE.emailstatus)
Nov 18 16:26:52 mail0 postfix/qmgr[5234]: 76BB12007F0: removed

[root@mail0 postfix]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
disable_vrfy_command = yes
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname localhost.$mydomain localhost $mydomain
mynetworks = 10.1.0.0/16 71.39.104.224/29
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
postscreen_access_list = permit_mynetworks
postscreen_dnsbl_action = enforce
postscreen_dnsbl_sites = zen.spamhaus.org*2 bl.spamcop.net*1
b.barracudacentral.org*1 hostkarma.junkemailfilter.com=127.0.0.2
postscreen_dnsbl_threshold = 2
postscreen_greet_action = enforce
proxy_interfaces = 71.39.104.229
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix/README_FILES
recipient_delimiter = -
sample_directory = /usr/share/doc/postfix/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
smtp_tls_loglevel = 1
smtp_tls_security_level = may
smtpd_helo_required = yes
smtpd_helo_restrictions = reject_invalid_helo_hostname, reject_rhsbl_helo
hostkarma.junkemailfilter.com=127.0.0.2, reject_rhsbl_helo zen.spamhaus.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_tls_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated,
reject_unknown_sender_domain, reject_unknown_address, reject_rhsbl_helo
dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org
smtpd_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/ssl/actualsoftware.pem
smtpd_tls_exclude_ciphers = EXPORT
smtpd_tls_key_file = /etc/postfix/ssl/actualsoftware.key
smtpd_tls_loglevel = 1
smtpd_tls_security_level = may
soft_bounce = no
unknown_local_recipient_reject_code = 550
virtual_alias_domains = CUSTOMERWEBSITE.com
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_transport = dovecot



I'm still feeling my way through postfix and spam filtering so if you see
anything missing or stupid feel free to throw rocks.  My feelings aren't going
to be hurt and I haven't found many sample configurations yet so I keep having
to reread the documentation.


Thanks.


Reply via email to