[opensuse] Help - Update from 10.3 > 11.0 broke postfix
Hi all, I updated my 10.3 server to 11.0 (using retail purchased DVD) and that seems to have broken my postfix install. Postfix is/was set up to send/receive to/from my own domain and has been working mostly fine for a few years. After the update I can send, but receive is not working. I THINK inbound emails are getting in, but no new emails are showing in the inbox. (I had to temporarily subscribe to the opensuse list to see any replies). AFAICT inbound emails are not bouncing, at least not until the queue gets full. The upgrade seemed to go fine, the machine boots OK, but the new install is not the default in grub. I can fix that. I do get the following in messages: ------ May 3 07:54:24 cammee postfix/master[5788]: fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype May 3 12:55:26 cammee postfix/postqueue[5924]: fatal: Cannot flush mail queue - mail system is down ------ I note that the time for postfix shows to be off by 5 hours. Not sure how to set the timezone for that, and unsure if this is the sole problem. My clock is not set to UTC, but this has not been a problem until now. I googled " fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype" and found only one thread related to that, but its in German which I can't read. The google translator wasn't too accurate...... On initial reboot I did see some screen message about postfix error, something related to either main.cf.SuSEConfig, or maybe master.cf.SuSEConfig being present, but can't find that in the logs. It should be in there somewhere. Postfix did not start on first boot, but it does start manually, and now on reboot. ClamAV and freshclam are updating themselves, according to the logs, which is not completely pertinent, but it tells me the system is MAINLY working OK. Apache is up too. I did have to change /etc/imapd to allow plaintext passwords. That's the only change I've made so far. Any pointers most welcome. Thanks. Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010-05-03 20:05, Jim Flanagan wrote:
Hi all,
I updated my 10.3 server to 11.0 (using retail purchased DVD) and that
Are you aware that 11.0 is going to be out of support in about two months? I hope you did not buy that DVD just now, because the currently sold one should be 11.2.
------ May 3 07:54:24 cammee postfix/master[5788]: fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype May 3 12:55:26 cammee postfix/postqueue[5924]: fatal: Cannot flush mail queue - mail system is down ------
I think that you might have an error in the master.cf file about the smtps line.
I note that the time for postfix shows to be off by 5 hours. Not sure how to set the timezone for that, and unsure if this is the sole problem. My clock is not set to UTC, but this has not been a problem until now.
Just type "date" as root on an xterm, and see if the timezone and hour/date is correct.
I googled " fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype" and found only one thread related to that, but its in German which I can't read. The google translator wasn't too accurate......
If you leave the 000 part out, google finds many entries.
On initial reboot I did see some screen message about postfix error, something related to either main.cf.SuSEConfig, or maybe master.cf.SuSEConfig being present, but can't find that in the logs. It should be in there somewhere.
That's output from SuSEconfig script. You can run it manually on an xterm as root and check. It is related to the script managing or not the postfix configuration because it was changed manually at some time. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iF4EAREIAAYFAkvfF+4ACgkQja8UbcUWM1w2bQD/cKZKK5NjvdDFtNcrDlldf1i9 rkyI/24b9hNpHmpmpcQA/i+qgYPcHg9Esh7HjS5OBesTbEL2KNII0EICd0BjPZTy =lBxw -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, May 3, 2010 at 1:37 PM, Carlos E. R.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2010-05-03 20:05, Jim Flanagan wrote:
Hi all,
I updated my 10.3 server to 11.0 (using retail purchased DVD) and that
Are you aware that 11.0 is going to be out of support in about two months? I hope you did not buy that DVD just now, because the currently sold one should be 11.2.
Yes I do know. I am updating this server one step at a time. Will probably go to 11.1 staying with KDE3. I don't think this old box can handle KDE4 with the plasma stuff. I bought the 11.0 when it was released.
I think that you might have an error in the master.cf file about the smtps line.
I'm not sure how to read that file.
I note that the time for postfix shows to be off by 5 hours. Not sure how to set the timezone for that, and unsure if this is the sole problem. My clock is not set to UTC, but this has not been a problem until now.
Just type "date" as root on an xterm, and see if the timezone and hour/date is correct.
Typing date shows system time to be what it shows on my desktop, i.e. correct local time.
I googled " fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype" and found only one thread related to that, but its in German which I can't read. The google translator wasn't too accurate......
I'll look for more there, thanks.
If you leave the 000 part out, google finds many entries.
On initial reboot I did see some screen message about postfix error, something related to either main.cf.SuSEConfig, or maybe master.cf.SuSEConfig being present, but can't find that in the logs. It should be in there somewhere.
That's output from SuSEconfig script. You can run it manually on an xterm as root and check. It is related to the script managing or not the postfix configuration because it was changed manually at some time.
Haven't run that yet. Will try it after I attempt a few other corrections first. Thanks, Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010.05.03 20:05, Jim Flanagan wrote:
Hi all,
I updated my 10.3 server to 11.0 (using retail purchased DVD) and that seems to have broken my postfix install. Postfix is/was set up to send/receive to/from my own domain and has been working mostly fine for a few years. After the update I can send, but receive is not working. I THINK inbound emails are getting in, but no new emails are showing in the inbox. (I had to temporarily subscribe to the opensuse list to see any replies). AFAICT inbound emails are not bouncing, at least not until the queue gets full.
The upgrade seemed to go fine, the machine boots OK, but the new install is not the default in grub. I can fix that. I do get the following in messages:
------ May 3 07:54:24 cammee postfix/master[5788]: fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype May 3 12:55:26 cammee postfix/postqueue[5924]: fatal: Cannot flush mail queue - mail system is down ------
Postfix is not running. You have a fatal configuration error in your system. A possible cause is that an invalid hostname is set for Postfix. Please post the output of "postconf -n" and the master.cf. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) drobic (.) de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, May 3, 2010 at 4:02 PM, Sandy Drobic
On 2010.05.03 20:05, Jim Flanagan wrote:
Hi all,
I updated my 10.3 server to 11.0 (using retail purchased DVD) and that seems to have broken my postfix install. Postfix is/was set up to send/receive to/from my own domain and has been working mostly fine for a few years. After the update I can send, but receive is not working. I THINK inbound emails are getting in, but no new emails are showing in the inbox. (I had to temporarily subscribe to the opensuse list to see any replies). AFAICT inbound emails are not bouncing, at least not until the queue gets full.
The upgrade seemed to go fine, the machine boots OK, but the new install is not the default in grub. I can fix that. I do get the following in messages:
------ May 3 07:54:24 cammee postfix/master[5788]: fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype May 3 12:55:26 cammee postfix/postqueue[5924]: fatal: Cannot flush mail queue - mail system is down ------
Postfix is not running. You have a fatal configuration error in your system. A possible cause is that an invalid hostname is set for Postfix.
Please post the output of "postconf -n" and the master.cf.
postconf -n returns, alias_maps = hash:/etc/aliases biff = no broken_sasl_auth_clients = yes 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 = disable_dns_lookups = no disable_mime_output_conversion = no html_directory = /usr/share/doc/packages/postfix/html inet_interfaces = all inet_protocols = all mail_owner = postfix mail_spool_directory = /var/mail mailbox_command = mailbox_size_limit = 51200000 mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man masquerade_classes = envelope_sender, header_sender, header_recipient masquerade_exceptions = root message_size_limit = 10240000 mydestination = jjfiii.com, mail.jjfiii.com localhost mydomain = jjfiii.com myhostname = mail.jjfiii.com myorigin = jjfiii.com newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/packages/postfix/README_FILES relayhost = [<edited but this works> ] 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/sasl_passwd smtp_sasl_type = cyrus smtp_tls_note_starttls_offer = yes smtp_use_tls = yes smtpd_client_restrictions = smtpd_helo_required = no smtpd_helo_restrictions = smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_recipient_access hash:/etc/postfix/recipients_internal_only, check_client_access hash:/etc/postfix/client_blacklist permit_sasl_authenticated smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymous smtpd_sender_restrictions = hash:/etc/postfix/access smtpd_tls_CAfile = /etc/postfix/ssl/CA/cacert.pem smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes strict_8bitmime = no strict_rfc821_envelopes = no transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 --------------- In comparing this to a printout of my 10.3 working main.cf, most values look the same, but the order it shifted around, not that that matters. Current master.cf # # Postfix master process configuration file. For details on the format # of the file, see the Postfix master(5) manual page. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - n - 10 smtpd -o content_filter=smtp:[127.0.0.1]:10024 #submission inet n - n - - smtpd # -o smtpd_etrn_restrictions=reject # -o smtpd_client_restrictions=permit_sasl_authenticated,reject smtps inet n - n - 10 smtpd -o smtpd_tls_wrappermode=yes -o content_filter=smtp:[127.0.0.1]:10024 # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #submission inet n - n - - smtpd # -o smtpd_etrn_restrictions=reject # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - n - - smtp -o fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil localhost:10025 inet n - n - - smtpd -o content_filter= -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_address_mappings scache unix - - n - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} cyrus unix - n n - - pipe user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient} retry unix - - n - - error proxywrite unix - - n - 1 proxymap ---------------------- Im not very familiar with this file. Thanks, Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am 04.05.2010 01:00, schrieb Jim Flanagan:
On Mon, May 3, 2010 at 4:02 PM, Sandy Drobic
wrote: On 2010.05.03 20:05, Jim Flanagan wrote:
------ May 3 07:54:24 cammee postfix/master[5788]: fatal: 0.0.0.0:smtps: Servname not supported for ai_socktype May 3 12:55:26 cammee postfix/postqueue[5924]: fatal: Cannot flush mail queue - mail system is down ------
Postfix is not running. You have a fatal configuration error in your system. A possible cause is that an invalid hostname is set for Postfix.
Please post the output of "postconf -n" and the master.cf.
postconf -n returns, alias_maps = hash:/etc/aliases biff = no broken_sasl_auth_clients = yes 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 = disable_dns_lookups = no disable_mime_output_conversion = no html_directory = /usr/share/doc/packages/postfix/html inet_interfaces = all inet_protocols = all mail_owner = postfix mail_spool_directory = /var/mail mailbox_command = mailbox_size_limit = 51200000 mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man masquerade_classes = envelope_sender, header_sender, header_recipient masquerade_exceptions = root message_size_limit = 10240000 mydestination = jjfiii.com, mail.jjfiii.com localhost mydomain = jjfiii.com myhostname = mail.jjfiii.com myorigin = jjfiii.com
The settings in your configuration are fine. Now let's test, if postfix can resolve all these names. What is written in your /etc/hosts? Can you resolve jjfiii.com, mail.jjfiii.com? Though the more important issue is the master.cf in this case. Please check the questions on that file first. (^-^)
---------------
In comparing this to a printout of my 10.3 working main.cf, most values look the same, but the order it shifted around, not that that matters.
The output of "postconf -n" is sortet and checked by Postfix automatically, that's why I prefer the output to the raw main.cf.
Current master.cf # # Postfix master process configuration file. For details on the format # of the file, see the Postfix master(5) manual page. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - n - 10 smtpd -o content_filter=smtp:[127.0.0.1]:10024 #submission inet n - n - - smtpd # -o smtpd_etrn_restrictions=reject # -o smtpd_client_restrictions=permit_sasl_authenticated,reject smtps inet n - n - 10 smtpd -o smtpd_tls_wrappermode=yes -o content_filter=smtp:[127.0.0.1]:10024
The output looks correct if the second line of each transport has a white space at the beginning: smtp inet n - n - 10 smtpd -o content_filter=smtp:[127.0.0.1]:10024 smtps inet n - n - 10 smtpd -o smtpd_tls_wrappermode=yes -o content_filter=smtp:[127.0.0.1]:10024 Each line in master.cf is a transport, and each line that starts with a white space is a continuation of the previous line. If your lines look like what I have written, it should be fine. Now to the problems with these transports, especially your second smtps transport. Generally, you don't need the smtps transport for mail. It is rather ancient, only very few software packages use it anymore. One problem could be that your system does not know the service smtps. This could be the case if postfix can't access /etc/services or if the service smtps is not included in /etc/services. I guess, it is the latter one. Simply search for smtps in your /etc/services. You could just circumvent the problem by using the port number instead of the service name: 465 inet n - n - 10 smtpd -o smtpd_tls_wrappermode=yes -o content_filter=smtp:[127.0.0.1]:10024 Though you should check first if you really need it anymore. Usually the submission port (587) is used for end user submission of mails.
#submission inet n - n - - smtpd # -o smtpd_etrn_restrictions=reject # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
You already have the line available, if you remove the comments. Here you also see the white space at the beginning. If that doesn't solve the problem try to do it step by step: Simply comment out the smtps lines and restart Postfix. Does it work now? One more remark concerning your smtp line: You have restricted the smtp port to 10 processes. The reasonable default is 100. Unless you plan to use Amavisd-new as a pre queue filter (content_filter is after queue filter) you should set the default 100. The smtpd process doesn't take a lot of resources. I would definitely recommend it. Sandy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
Jim Flanagan
-
Sandy Drobic