
1st September 2007, 12:01
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
How do I configure my server to send email for all hosted domains?
My server's main domain is domainA.tld. One of my hosted site has domain domainB.tld. Using mail client, say Thunderbird, a user userB1 on domainB connects from a remote PC to the server. She receives her mails without problem.
The problem happens when she sends mail to any destination except the domains hosted in the server. No mail can be sent to any where.
The mail log is below:
Quote:
Sep 1 17:52:01 www postfix/smtpd[1155]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
Sep 1 17:52:01 www postfix/smtpd[1155]: NOQUEUE: reject: RCPT from unknown[220.232.XXX.XXX]: 554 5.7.1 <wai@gmail.com>: Recipient address rejected: Relay access denied; from=<userB1@domainB.tld> to=<wai@gmail.com> proto=SMTP
Sep 1 17:52:03 www postfix/smtpd[1155]: disconnect from unknown[220.232.XXX.XXX]
|
My question is how do I configure postfix to accept (authenticated) users of my hosted domains to send email via my server?
I've followed the perfect setup howto to install my server. I'm using SuSE 10.2.
Thanks in advance,
Wai
|

1st September 2007, 14:47
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,192 Times in 3,208 Posts
|
|
You must enable smtp autentication in thunderbird when sending emails.
|

1st September 2007, 17:43
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Thanks, Till.
I've enabled authentication in Thunderbird. I still can't send mail.
I found in my mail.err log file the following message:
Quote:
|
Sep 1 23:36:26 www postfix/smtp[15479]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter
|
Should ISPConfig create the password_maps file and set the postfix config parameter? or where can I find this file? or how do I create it?
Wai
|

1st September 2007, 17:54
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,192 Times in 3,208 Posts
|
|
Password maps is not used by ISPConfig.
Please reconfigure your mail system, especially SASL, as described in the perfect setup howto. All authentication is done against /etc/passwd.
|

1st September 2007, 18:54
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
I have followed the perfect setup. I still get the fatal error shown above.
Here is my main.cf. Can you see anything wrong?
Quote:
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
#virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = mail.$mydomain
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
#mydestination = $myhostname, localhost.$mydomain
defer_transports =
mynetworks_style = subnet
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_ relay_domains
smtp_sasl_auth_enable = yes
smtpd_sasl_auth_enable = yes
smtpd_use_tls = yes
smtp_use_tls = yes
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
mydomain = domainA.com
mynetworks = 127.0.0.0/8
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names
|
|

2nd September 2007, 19:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Please try this:
Code:
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd'
Restart Postfix afterwards.
|

3rd September 2007, 04:27
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Thank you, Falko.
I tried what you suggested. Restarted postfix and saslauthd.
No more fatal error message in my mail.err log file. But postfix still does not accept connection from a remote PC and not send mail to external destination.
I still get the message
554 Recipient address rejected: Relay access denied;
Can anyone help please?
Wai
|

3rd September 2007, 07:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,192 Times in 3,208 Posts
|
|
Please enable smtp authentication in your email client.
|

3rd September 2007, 16:20
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
I've checked the "Use name and password" box in Thunderbird. Does this enable smtp authentication?
|

3rd September 2007, 19:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,192 Times in 3,208 Posts
|
|
Quote:
|
Originally Posted by qqwong
I've checked the "Use name and password" box in Thunderbird. Does this enable smtp authentication?
|
Yes, this enables the smtp authentication.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 18:13.
|
|
Recent comments
9 hours 2 min ago
18 hours 29 min ago
19 hours 19 min ago
22 hours 52 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 5 hours ago
1 day 15 hours ago
1 day 20 hours ago
1 day 22 hours ago