DevHeads.net

Postings by Julian Kippels

Can not find virtual alias with postmap

Hi,

I have a problem with my virtual alias map. The file looks like this:

...
<a href="mailto:admin- ... at cs dot uni-duesselorf.de">admin- ... at cs dot uni-duesselorf.de</a> <a href="mailto:admin-acs@uni-duesseldorf.de">admin-acs@uni-duesseldorf.de</a>
<a href="mailto:admin- ... at cs dot hhu.de">admin- ... at cs dot hhu.de</a> <a href="mailto:admin-acs@uni-duesseldorf.de">admin-acs@uni-duesseldorf.de</a>
...

When I build the db file with "postmap virtual_alias" and then query
with "postmap -q <address> virtual_alias", I get a very peculiar
behaviour in that the lookup works just fine for <a href="mailto:admin- ... at cs dot hhu.de">admin- ... at cs dot hhu.de</a>,
but not for <a href="mailto:admin- ... at cs dot uni-duesseldorf.de">admin- ... at cs dot uni-duesseldorf.de</a>.

Any suggestions would be welcome.

Thanks in advance
Julian

Seperate maps for virtual domains?

Hi,

would it be faster to have several smaller files for alias_maps and
transport_maps for each virtual domain, or have one giant file each with
all users domain from all virtual domains in one file? Around 90% of
traffic is for one domain and the rest is split among 32 other domain.

Thanks
Julian

Need help finding cause of error msg

Hi,

On my servers I get this (non-consequential) error every so often:
/var/log/maillog:Apr 12 15:01:00 postfix-test postfix/virtual[4996]: fatal: bad string length 0 < 1: virtual_mailbox_base =
/var/log/maillog:Apr 12 15:01:01 postfix-test postfix/master[4960]: warning: process /usr/libexec/postfix/virtual pid 4996 exit status 1
/var/log/maillog:Apr 12 15:01:01 postfix-test postfix/master[4960]: warning: /usr/libexec/postfix/virtual: bad command startup -- throttling

Here are postconf -n and -M:
$ postconf -M
smtp inet n - n - - smtpd
pmx unix -

Order of lookups

Hi,

I have several lookups configured and I would like to know in which
order these are executed by postfix if a new mail arrives.

The lookups in question are:
virtual_mailbox_maps
virtual_alias_maps
transport_maps
and check_recipient_access in smtpd_recipient_restrictions

Thanks
Julian

Why does postfix continue to try to deliver mail after getting a 554?

Hi,

I was just wondering why my postfix was continuing to try to deliver a
mail to another server after getting a 554 response the first time.
Shouldn't the delivery stop right then and there and the sender be
notified? Instead postfix tried for several days to deliver the message
before it ultimately failed and notified the sender.
soft_bounce is set to "no" if that has anything to do with it.

Thanks,
Julian

Opt-Out content_filter

Hi,

I would like to have the possibility for my users to opt out of their
incomming mail being scanned by a spam filter. Is there a way I could
achieve this using ldap tables? Maybe with smtpd_*_restrictions?

Thanks
Julian

smtpd_recipient_restrictions: multiple tables in check_recipient_access?

Hi,

is it possible to have more then one table in check_recipient_access?

Like this:

smtpd_recipient_restrictions =
check_recipient_access
ldap:table1.cf
ldap:table2.cf
ldap:table3.cf
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination

or am I limited to one table?

Thanks
Julian

Automatic restart of processes in master.cf

Hi,

I would like to start a few policy daemons using the master.cf file when
I start postfix. Are those processes restarted automatically when they
end (for whatever reason)?

excerpt from master.cf:
spamwatch inet n n n - - spamwatch
distgrp inet n n n - - distgrp

Related question: Is it a good idea to start the policy daemons in this
way, or should I start them independetly as a system service?

Thanks,
Julian

Postfix is not logging delivery via smtp

Hi,

most of our mails are deliverd with lmtp, but some are delilered to
other machines for further processing via smtp (exchange server and
mailman). When mails for those systems are being delivered, they are not
logged. I only get the log entry from smtpd, but nothing from smtp.

$myhostname (sometimes) evaluated incorrectly

Hi,

I just saw that apparently the variable $myhostname is evaluated
incorrectly sometimes.

Disable logging for specific ips

Hi,

I would like to prevent postfix from logging when connections come in
from certain ip addresses.

Feb 14 03:32:45 mail-test postfix/smtpd[16006]: connect from
unknown[192.168.25.2]
Feb 14 03:32:45 mail-test postfix/smtpd[16006]: disconnect from
unknown[192.168.25.2]
Feb 14 03:32:46 mail-test postfix/smtpd[16006]: connect from
unknown[192.168.25.3]
Feb 14 03:32:46 mail-test postfix/smtpd[16006]: disconnect from
unknown[192.168.25.3]

Is there a way to do this?

Thanks,
Julian

Restricting distribution lists

Hi,

I am trying to configure distribution lists with restricted senders.
Scenario:
I have <a href="mailto: ... at domain dot tld"> ... at domain dot tld</a> with the recipients <a href="mailto: ... at domain dot tld"> ... at domain dot tld</a>,
<a href="mailto: ... at domain dot tld"> ... at domain dot tld</a> and <a href="mailto: ... at other dot tld"> ... at other dot tld</a>
Only Person A should be allowed to send mails to testlist001.

I used <a href="http://www.postfix.org/RESTRICTION_CLASS_README.html#internal" title="http://www.postfix.org/RESTRICTION_CLASS_README.html#internal">http://www.postfix.org/RESTRICTION_CLASS_README.html#internal</a> as
a guideline.