[opensuse] smtp relay for send mail
ok, i tried setting up the mta using yast. This did not work quite as well
as i'd liked.
I've now manually edited the main.cf file as you suggested Sandy. I had to
create the file '/etc/postfix/smtp_relayhost_auth' as it was not there,
and entered the server and username/passwd for my isp.
i restarted postfix as you advised. It seems i'm getting mail ok but can't
send now.
output from 'postconf -n' :
alias_maps = hash:/etc/aliases
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports = smtp
disable_dns_lookups = yes
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = localhost
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = /usr/bin/procmail
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname,localhost.$mydomain,$mydomain
myhostname = unix-queen.home
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost = mail.btinternet.com
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_relayhost_auth
smtp_sasl_security_options = noanonymous
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
--------------------------------------------
errors from /var/log/mail :
postfix/error[14394]: 304011CD519: to=
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jay Griffin wrote:
ok, i tried setting up the mta using yast. This did not work quite as well as i'd liked.
I've now manually edited the main.cf file as you suggested Sandy. I had to create the file '/etc/postfix/smtp_relayhost_auth' as it was not there, and entered the server and username/passwd for my isp.
i restarted postfix as you advised. It seems i'm getting mail ok but can't send now.
output from 'postconf -n' :
alias_maps = hash:/etc/aliases biff = no canonical_maps = hash:/etc/postfix/canonical command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix debug_peer_level = 2 defer_transports = smtp disable_dns_lookups = yes disable_mime_output_conversion = no html_directory = /usr/share/doc/packages/postfix/html inet_interfaces = localhost inet_protocols = all
<snip>
relayhost = mail.btinternet.com
should be (which works for me).... relayhost = [mail.btinternet.com]
smtp_sasl_security_options = noanonymous smtp_use_tls = no smtpd_client_restrictions = smtpd_helo_required = no smtpd_helo_restrictions = smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination smtpd_sasl_auth_enable = no smtpd_sender_restrictions = hash:/etc/postfix/access smtpd_use_tls = no strict_8bitmime = no strict_rfc821_envelopes = no transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_domains = hash:/etc/postfix/virtual virtual_alias_maps = hash:/etc/postfix/virtual
--------------------------------------------
errors from /var/log/mail :
postfix/error[14394]: 304011CD519: to=
, relay=none, delay=0.33, delays=0.27/0.01/0/0.06, dsn=4.3.2, status=deferred (deferred transport) Apr 14 14:40:15 postfix/qmgr[14364]: 4F3191CD517: from= , size=457, nrcpt=1 (queue active) Apr 14 14:40:15 postfix/qmgr[14364]: 55BDC1CD518: from= , size=498, nrcpt=2 (queue active) postfix/error[14804]: 304011CD519: to=
, relay=none, delay=561, delays=561/0.04/0/0.11, dsn=4.3.2, status=deferred (deferred transport) ------------------------------------- Not sure what this could be?
Jamie
btinternet require that you authenticate to their mail relays - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIA2NOasN0sSnLmgIRAsTLAJ4wbQ8LiFqIAbBO0M6zfzP6NqDADQCg94Cp yHo1EcYztMCv/UUf/fTSDxs= =5Zus -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Apr 14, 2008 at 02:59:42PM +0100, G T Smith wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jay Griffin wrote:
ok, i tried setting up the mta using yast. This did not work quite as well as i'd liked.
I've now manually edited the main.cf file as you suggested Sandy. I had to create the file '/etc/postfix/smtp_relayhost_auth' as it was not there, and entered the server and username/passwd for my isp.
i restarted postfix as you advised. It seems i'm getting mail ok but can't send now.
output from 'postconf -n' :
alias_maps = hash:/etc/aliases biff = no canonical_maps = hash:/etc/postfix/canonical command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix debug_peer_level = 2 defer_transports = smtp disable_dns_lookups = yes disable_mime_output_conversion = no html_directory = /usr/share/doc/packages/postfix/html inet_interfaces = localhost inet_protocols = all
<snip>
relayhost = mail.btinternet.com
should be (which works for me)....
relayhost = [mail.btinternet.com]
smtp_sasl_security_options = noanonymous smtp_use_tls = no smtpd_client_restrictions = smtpd_helo_required = no smtpd_helo_restrictions = smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination smtpd_sasl_auth_enable = no smtpd_sender_restrictions = hash:/etc/postfix/access smtpd_use_tls = no strict_8bitmime = no strict_rfc821_envelopes = no transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_domains = hash:/etc/postfix/virtual virtual_alias_maps = hash:/etc/postfix/virtual
--------------------------------------------
errors from /var/log/mail :
postfix/error[14394]: 304011CD519: to=
, relay=none, delay=0.33, delays=0.27/0.01/0/0.06, dsn=4.3.2, status=deferred (deferred transport) Apr 14 14:40:15 postfix/qmgr[14364]: 4F3191CD517: from= , size=457, nrcpt=1 (queue active) Apr 14 14:40:15 postfix/qmgr[14364]: 55BDC1CD518: from= , size=498, nrcpt=2 (queue active) postfix/error[14804]: 304011CD519: to=
, relay=none, delay=561, delays=561/0.04/0/0.11, dsn=4.3.2, status=deferred (deferred transport) ------------------------------------- Not sure what this could be?
Jamie
btinternet require that you authenticate to their mail relays
- -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone.
Bjarne Stroustrup ==============================================================================
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIA2NOasN0sSnLmgIRAsTLAJ4wbQ8LiFqIAbBO0M6zfzP6NqDADQCg94Cp yHo1EcYztMCv/UUf/fTSDxs= =5Zus -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi again, I think (fingers crossed) i've got it sorted. The "deferred transport" parameter was set to smtp. I changed it to ondemand and mails are now relaying ok. Thanks for the help with this though. Jamie -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jamie Griffin wrote:
I think (fingers crossed) i've got it sorted. The "deferred transport" parameter was set to smtp. I changed it to ondemand and mails are now relaying ok.
Thanks for the help with this though.
At least the sending works now, how about receiving mails? Do you receive mails directly as mx for your domain or do you poll a mailbox at your provider? -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jay Griffin wrote:
ok, i tried setting up the mta using yast. This did not work quite as well as i'd liked.
I've now manually edited the main.cf file as you suggested Sandy. I had to create the file '/etc/postfix/smtp_relayhost_auth' as it was not there, and entered the server and username/passwd for my isp.
i restarted postfix as you advised. It seems i'm getting mail ok but can't send now.
output from 'postconf -n' :
alias_maps = hash:/etc/aliases biff = no canonical_maps = hash:/etc/postfix/canonical command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix debug_peer_level = 2 defer_transports = smtp ^^^^^^^^^^^^^^^^^^^^^^^^^^
No idea why you've got this parameter set, but it will defer all smtp deliveries, exactly as the name of the parameter indicates!
disable_dns_lookups = yes
This is another nice effort to shoot yourself. If you disable dns lookups then don't expect Postfix to find out what ip address mail.btinternet.com might be. Remove both parameters and requeue the mails: postconf -e "defer_transports = " postconf -e "disable_dns_lookups = " postfix reload postsuper -r ALL postfix flush Then check if the mails are being delivered or if some other errors pop up.
disable_mime_output_conversion = no html_directory = /usr/share/doc/packages/postfix/html inet_interfaces = localhost inet_protocols = all mail_owner = postfix mail_spool_directory = /var/mail mailbox_command = /usr/bin/procmail mailbox_size_limit = 0 mailbox_transport = mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man masquerade_classes = envelope_sender, header_sender, header_recipient masquerade_domains = masquerade_exceptions = root message_size_limit = 10240000 mydestination = $myhostname,localhost.$mydomain,$mydomain myhostname = unix-queen.home mynetworks_style = subnet newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/packages/postfix/README_FILES relayhost = mail.btinternet.com
Better: relayhost = [mail.btinternet.com] The square brackets disable the mx lookup in case some clever admin has configured an mx for whatever reason.
relocated_maps = hash:/etc/postfix/relocated sample_directory = /usr/share/doc/packages/postfix/samples sender_canonical_maps = hash:/etc/postfix/sender_canonical sendmail_path = /usr/sbin/sendmail setgid_group = maildrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/smtp_relayhost_auth smtp_sasl_security_options = noanonymous smtp_use_tls = no smtpd_client_restrictions = smtpd_helo_required = no smtpd_helo_restrictions = smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination smtpd_sasl_auth_enable = no smtpd_sender_restrictions = hash:/etc/postfix/access smtpd_use_tls = no strict_8bitmime = no strict_rfc821_envelopes = no transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_domains = hash:/etc/postfix/virtual virtual_alias_maps = hash:/etc/postfix/virtual
--------------------------------------------
errors from /var/log/mail :
postfix/error[14394]: 304011CD519: to=
, relay=none, delay=0.33, delays=0.27/0.01/0/0.06, dsn=4.3.2, status=deferred (deferred transport) Apr 14 14:40:15 postfix/qmgr[14364]: 4F3191CD517: from= , size=457, nrcpt=1 (queue active) Apr 14 14:40:15 postfix/qmgr[14364]: 55BDC1CD518: from= , size=498, nrcpt=2 (queue active) postfix/error[14804]: 304011CD519: to=
, relay=none, delay=561, delays=561/0.04/0/0.11, dsn=4.3.2, status=deferred (deferred transport) ------------------------------------- Not sure what this could be?
See above. defer_transports strikes once again. (^-^) -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Apr 14, 2008 at 07:21:37PM +0200, Sandy Drobic wrote:
Jay Griffin wrote:
No idea why you've got this parameter set, but it will defer all smtp deliveries, exactly as the name of the parameter indicates!
disable_dns_lookups = yes
This is another nice effort to shoot yourself. If you disable dns lookups then don't expect Postfix to find out what ip address mail.btinternet.com might be.
Remove both parameters and requeue the mails:
postconf -e "defer_transports = " postconf -e "disable_dns_lookups = " postfix reload postsuper -r ALL postfix flush
Then check if the mails are being delivered or if some other errors pop up.
relayhost = [mail.btinternet.com]
The square brackets disable the mx lookup in case some clever admin has configured an mx for whatever reason.
-- Sandy
List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thank you very much Sandy. I've made the changes and it does seem to be working much better now. I'll keep an eye on it though, any further problems will post back. Thanks to all. Jamie -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Apr 14, 2008 at 07:12:37PM +0100, Jamie Griffin wrote:
On Mon, Apr 14, 2008 at 07:21:37PM +0200, Sandy Drobic wrote:
Jay Griffin wrote:
No idea why you've got this parameter set, but it will defer all smtp deliveries, exactly as the name of the parameter indicates!
disable_dns_lookups = yes
This is another nice effort to shoot yourself. If you disable dns lookups then don't expect Postfix to find out what ip address mail.btinternet.com might be.
Remove both parameters and requeue the mails:
postconf -e "defer_transports = " postconf -e "disable_dns_lookups = " postfix reload postsuper -r ALL postfix flush
Then check if the mails are being delivered or if some other errors pop up.
relayhost = [mail.btinternet.com]
The square brackets disable the mx lookup in case some clever admin has configured an mx for whatever reason.
-- Sandy
List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thank you very much Sandy. I've made the changes and it does seem to be working much better now. I'll keep an eye on it though, any further problems will post back.
Thanks to all.
Jamie -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
just to add Sandy, retrieving messages is also working; i'm polling them from an imap server currently. When i've got the static ip sorted i intend to set up mx for my domain. I thought about dyndns but from what i can tell it makes things easier having a static ip? is that right? Jamie -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jamie Griffin wrote:
just to add Sandy, retrieving messages is also working; i'm polling them from an imap server currently. When i've got the static ip sorted i intend to set up mx for my domain. I thought about dyndns but from what i can tell it makes things easier having a static ip? is that right?
Jamie
No question about it. Then you can set dns entries at your ISP/domain host level to handle internet routing of mail and can also set up a remote back mail server elsewhere just in case your primary box is down. If your current domain host doesn't/won't offer you the ability to set your own dns entries then move your domains to domaindiscover.com. Been with them for years, cost $16/year, with full dns capabilities included. Then all you have left is setting up your internal dns to handle routing on your lan. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
David C. Rankin
-
G T Smith
-
Jamie Griffin
-
Jay Griffin
-
Sandy Drobic