per sender relay and sasl not receiving username/password

2012-02-16 Thread Jake Stride
I am trying to setup my mail server to send email from a single email address 
via a rely and deliver all other email properly, however I am having problems 
with the TLS authentication and was hoping for some points please. The current 
configs are below (anonymised) and the error I am getting is:

*log*

Feb 16 23:53:37 my-server postfix/smtp[21955]: 406E2E4382: 
to=addr...@domain.com, relay=127.0.0.1[127.0.0.1]:1125, delay=1.1, 
delays=0.02/0.03/0.5/0.51, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] 
said: 554 Transaction failed: User name is missing: 'undisclosed-recipients:;'. 
(in reply to end of DATA command))

*sender_relay*

address-to-re...@somedomain.com   [127.0.0.1]:1125

*sasl_password*

[127.0.0.1]:1125user:pass

*main.cf*

#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate delayed mail warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = mail.mydomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.mydomain.com, localhost, localhost.localdomain, localhost
mynetworks = 127.0.0.0/8 [:::127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
# This allows us to specify our mail to go via other servers
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
# This allows us to pipe mail to a script
local_recipient_maps =
luser_relay = our_script
transport_maps = hash:/etc/postfix/transport
smtpd_recipient_restrictions =
permit_mynetworks,
reject_unauth_destination,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl.spamhaus.org,
permit





Re: per sender relay and sasl not receiving username/password

2012-02-16 Thread Jake Stride
Thanks - I was using sendmail -f addr...@domain.com to check it worked, using 
telnet the current config works.

Thanks for the help. 

On Friday, 17 February 2012 at 11:56 AM, Patrick Ben Koetter wrote:

 * Jake Stride j...@stride.me.uk (mailto:j...@stride.me.uk):
  I am trying to setup my mail server to send email from a single email 
  address via a rely and deliver all other email properly, however I am 
  having problems with the TLS authentication and was hoping for some points 
  please. The current configs are below (anonymised) and the error I am 
  getting is:
  
  *log*
  
  Feb 16 23:53:37 my-server postfix/smtp[21955]: 406E2E4382: 
  to=addr...@domain.com (mailto:addr...@domain.com), 
  relay=127.0.0.1[127.0.0.1]:1125, delay=1.1, delays=0.02/0.03/0.5/0.51, 
  dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 554 Transaction 
  failed: User name is missing: 'undisclosed-recipients:;'. (in reply to end 
  of DATA command))
 
 I don't think this is a SASL related problem.
 
 The receiving side seems to dislike the To:-header, in specific, it complains
 the To-header does not contain a FQDN mail address i.e. localpart@domainpart.
 
  address-to-re...@somedomain.com (mailto:address-to-re...@somedomain.com) 
  [127.0.0.1]:1125
  
  *sasl_password*
  
  [127.0.0.1]:1125 user:pass
  
  *main.cf*
 
 Better use 'postconf -n' to create configuration output from main.cf.
 
 p@rick
 
 -- 
 All technical questions asked privately will be automatically answered on the
 list and archived for public access unless privacy is explicitely required and
 justified.
 
 saslfinger (debugging SMTP AUTH):
 http://postfix.state-of-mind.de/patrick.koetter/saslfinger/