Sender address rejected: Access denied

Csanyi Pal csanyipal at gmail.com
Sun Jul 24 09:20:36 CEST 2011


Hi,

I have installed Kolab2 server on Debian GNU/Linux Squeeze system.
It works just I can't to send mails from my Kolab server machine to the
Internet. 

My postfix has the following settings:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
config_directory = /etc/postfix
content_filter = kolabfilter
disable_mime_input_processing = yes
header_checks = regexp:/etc/postfix/header_checks
local_recipient_maps = $virtual_alias_maps, $alias_maps
mailbox_transport = kolabmailboxfilter
masquerade_classes = envelope_sender, envelope_recipient, header_sender,
header_recipient 
masquerade_domains = bubba.localdomain
message_reject_characters = \0
message_size_limit = 20971520
mime_header_checks = 
mydestination = $myhostname localhost.$mydomain localhost
mydomain = localdomain
myhostname = csanyi-pal.info
mynetworks = 127.0.0.0/8
myorigin = stcable.net
nested_header_checks = 
recipient_delimiter = +
relay_domains = 
relayhost = [smtp.stcable.net]
relocated_maps = hash:/etc/postfix/relocated
remote_header_rewrite_domain = domain.invalid
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination,
reject_unlisted_recipient, check_policy_service
unix:private/kolabpolicy 
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = 
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks, check_policy_service
unix:private/kolabpolicy 
smtpd_starttls_timeout = 300s
smtpd_timeout = 300s
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/kolab/cert.pem
smtpd_tls_key_file = /etc/kolab/key.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = no
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport,
ldap:/etc/postfix/ldaptransport.cf 
virtual_alias_maps = hash:/etc/postfix/virtual,
ldap:/etc/postfix/ldapdistlist.cf, ldap:/etc/postfix/ldapvirtual.cf 
smtpd_sasl_password_maps = hash:/etc/postfix/sasl_passwd

I have in the sasl_passwd file my username and password for
authentication to my ISO smtp server.

I have run postmap /etc/postfix/sasl_passwd command.

When I try to send mail from Kolab server machine using command from a
shell: echo "hello" | mailx -s  "test" csanyipal at gmail.com

and after that I view the mail.info logfile using command:
tail -f /var/log/mail.info
then I can see this message:

Jul 24 08:55:13 bubba postfix/smtp[25639]: D01A573DEE:
to=<csanyipal at gmail.com>, relay=smtp.stcable.net[91.102.225.5]:25,
delay=0.21, delays=0.08/0.03/0.08/0.02, dsn=5.7.1, status=bounced (host
smtp.stcable.net[91.102.225.5] said: 554 5.7.1 <csanyipal at stcable.net>:
Sender address rejected: Access denied (in reply to RCPT TO command)) 
Jul 24 08:55:13 bubba postfix/cleanup[25595]: 1308973DF4:
message-id=<20110724065513.1308973DF4 at csanyi-pal.info> 
Jul 24 08:55:13 bubba postfix/qmgr[25376]: 1308973DF4: from=<>,
size=2476, nrcpt=1 (queue active) 
Jul 24 08:55:13 bubba postfix/bounce[25646]: D01A573DEE: sender
non-delivery notification: 1308973DF4 
Jul 24 08:55:13 bubba postfix/qmgr[25376]: D01A573DEE: removed

The relevant line is here: Sender address rejected: Access denied

I tried also the following too with telnet:
perl -MMIME::Base64 -e 'print
encode_base64("\000username\@isps.smarthost.tld\mysecretpassword")' 
****************************************************************

telnet smtp.stcable.net 25
Trying 91.102.225.5...
Connected to smtp.stcable.net.
Escape character is '^]'.
220 smtp.stcable.net ESMTP Postfix

ehlo test
250-smtp.stcable.net
250-PIPELINING
250-SIZE 20971520
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

AUTH PLAIN ***************************************************
235 2.7.0 Authentication successful
mail from: <csanyipal at stcable.net>
250 2.1.0 Ok
rcpt to: <csanyipal at gmail.com>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
From: Pal <csanyipal at stcable.net>
To: Pal <csanyipal at gmail.com>
Subject: Test

Hello Pal!
.
250 2.0.0 Ok: queued as 8DAAD36315

*** Quit
quit
221 2.0.0 Bye
Connection closed by foreign host.


So it seems that that I can to authenticate myself to ISP's smtpserver
but when using kolab and postfix then I can't. Why? How can I solve this
problem? 

-- 
Regards, Pal
<http://csanyi-pal.info>




More information about the users mailing list