My setup is I get my mail from a relay host - they perform A/V and anti spam. 
So if I can set up a ldap server, they can query for valid domains.

I've recompiled postfix with ldap support (I hope!), but it doesn't appear 
postfix is using the aliases in my ldap.

My setup is I have one mailbox on my server (eplatt) and all valid mail goes to 
it. So my aliases consists of
example1:eplatt
example2:eplatt
webmaster:eplatt 

etc.

Everything was working until (murphys law) I reinstalled to enable ldap 
support. I reinstalled with:

make -f Makefile.init makefiles 'PREFIX=/etc/postfix ' 'CCARGS=-DUSE_TLS 
-I/sw/include/sasl -DUSE_SASL_AUTH -DUSE_CYRUS_SASL ' 'AUXLIBS=-L/opt/local/lib 
-lsasl2 -lssl -lcrypto' 'CCARGS='-I/usr/local/include -DHAS_LDAP' 
AUXLIBS='-L/usr/local/lib -lldap -L/usr/local/lib -llber'

I'm seeing in the mail.log:
Jun 21 11:47:48 www ${multi_instance_name: 
postfix}${multi_instance_name?$multi_instance_name}/master[7111]: reload -- 
version 2.6.2, configuration /etc/postfix

Second, I've disabled anvil in master.cf, but I still see:

Jun 21 11:48:27 www postfix/smtpd[7132]: warning: connect to private/anvil: 
Connection refused
Jun 21 11:48:27 www postfix/smtpd[7132]: warning: problem talking to server 
private/anvil: Connection refused

I recall (but can't find it on google) adding anvil=no in main.cf?

I've included my postconf -n at the end, but can anyone help and advise what 
I'm doing wrong?

I have

uid=eplatt,dc=espphotography,dc=com
and names of mail, value of examp...@espphotography.com, 
examp...@espphotography.com , etc.

with
alias_maps = ldap:/etc/postfix/ldap-aliases.cf
ldap-aliases.cf:
server_host = localhost
search_base = dc=espphotography, dc=com

all mail is rejected:

Jun 20 12:43:37 www postfix/smtpd[1703]: NOQUEUE: reject: RCPT from 
unknown[192.168.1.4]: 550 5.1.1 <examp...@espphotography.com>: Recipient 
address rejected: User unknown in local recipient table; 
from=<e...@espphotography.com> to=<examp...@espphotography.com> proto=ESMTP 
helo=<mylaptop.espphotography.com>

Below is my postconf.n. Anything I'm missing , please let me know.

Thanks!

# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 10000000
mydomain = espphotography.com
myhostname = espphotography.com
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
relayhost = [smtp.comcast.net]:587
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = 
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, 
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access
smtpd_tls_cert_file = /System/Library/OpenSSL/certs/smtpd.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550


      

Reply via email to