Koozali.org: home of the SME Server

SMTP not working after upgrade to 7.0b8

devlynd

SMTP not working after upgrade to 7.0b8
« on: December 14, 2005, 07:03:46 AM »
I'm not posting this is as a bug because I upgraded over a slightly modified version of 6.0.1.  The contribs I had installed on the box were user account access, the knudsen antivirus/spamassasin and postgresql.

I was forced to upgrade because my system took a nose dive and refused to boot, stopping after 'freeing kernel memory.'  Please don't lecture me on using beta software.  I knew the risks and am now trying to deal with it.  I tried 'upgrading' to 6.0.1 and 6.0, but the installs apparently did not detect an early enough system to actually reinstall.

So, after the upgrade everything seems to be working fairly well except SMTP.  I did remove the contribs after successfully booting into the system.  I can access IMAP w/Thunderbird and webmail.  However, the server is neither sending nor receiving mail.  When I try to send mail w/webmail I get the following error:

There was an error sending your message: unable to connect to smtp server localhost:25

I've searched through the forums and have so far not found anything that resolves the problem.  Here are some log excerpts:

From "Messages"
Dec 13 21:21:56 file-server HORDE[3162]: [imp] Login success for me@mydomain.com [xx.xx.xx.xxx] to {localhost:143} [on line 150 of "/home/httpd/html/horde/imp/redirect.php"]
Dec 13 21:22:07 file-server last message repeated 7 times
Dec 13 21:22:29 file-server httpd: PHP Warning:  fsockopen(): unable to connect to 127.0.0.1:25 in /usr/share/pear/Net/Socket.php on line 108
Dec 13 21:22:29 file-server HORDE[3163]: [imp] unable to connect to smtp server localhost:25 [on line 939 of "/home/httpd/html/horde/imp/compose.php"]
Dec 13 21:23:17 file-server last message repeated 7 times

After a reboot in Messages:
Dec 13 20:51:55 file-server qpsmtpd: Starting qpsmtpd:
Dec 13 20:51:55 file-server qpsmtpd: Starting qpsmtpd succeeded
Dec 13 20:51:56 file-server qpsmtpd:
Dec 13 20:51:56 file-server slapd[2679]: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Dec 13 20:51:56 file-server rc.e-smith: Starting qpsmtpd:  succeeded
Dec 13 20:51:57 file-server rc.e-smith: Starting spamassassin:  succeeded
Dec 13 20:51:57 file-server slapd[2679]: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Dec 13 20:51:58 file-server slapd[2679]: /etc/openldap/slapd.conf: line 17: schema checking disabled! your mileage may vary!
Dec 13 20:51:58 file-server sqpsmtpd: Starting sqpsmtpd:
Dec 13 20:51:58 file-server sqpsmtpd: Starting sqpsmtpd succeeded
Dec 13 20:51:59 file-server sqpsmtpd:

Dec 13 20:52:00 file-server ssl-smtpfront-qmail: Starting ssl-smtpfront-qmail:
Dec 13 20:52:00 file-server ssl-smtpfront-qmail: Starting ssl-smtpfront-qmail succeeded
Dec 13 20:52:00 file-server ssl-smtpfront-qmail: 
Dec 13 20:52:00 file-server ssl-smtpfront-qmail:
Dec 13 20:52:00 file-server rc.e-smith: Starting ssl-smtpfront-qmail:  succeeded

From "qpsmtpd/current"
2005-12-13 21:56:35.750727500 21176 trying to get config for plugins
2005-12-13 21:56:35.752059500 21176 loading plugins from /usr/share/qpsmtpd/plugins
2005-12-13 21:56:35.759546500 21176 Loading auth/auth_cvm_unix_local cvm_socket /var/lib/cvm/cvm-unix-local.socket enable_smtp no enable_ssmtp yes
2005-12-13 21:56:35.764344500 21176 Loading check_earlytalker
2005-12-13 21:56:35.765094500 21176 check_earlytalker hooking connect
2005-12-13 21:56:35.767519500 21176 Loading count_unrecognized_commands 4
2005-12-13 21:56:35.768155500 21176 count_unrecognized_commands hooking unrecognized_command
2005-12-13 21:56:35.770722500 21176 Loading check_relay
2005-12-13 21:56:35.771332500 21176 check_relay hooking connect
2005-12-13 21:56:35.783942500 21176 Loading check_norelay
2005-12-13 21:56:35.784613500 21176 check_norelay hooking connect
2005-12-13 21:56:35.791491500 21176 Loading require_resolvable_fromhost
2005-12-13 21:56:35.792025500 21176 require_resolvable_fromhost hooking mail
2005-12-13 21:56:35.815480500 21176 Loading check_basicheaders
2005-12-13 21:56:35.815992500 21176 check_basicheaders hooking data_post
2005-12-13 21:56:35.818959500 21176 Loading check_badmailfrom
2005-12-13 21:56:35.819469500 21176 check_badmailfrom hooking rcpt
2005-12-13 21:56:35.819803500 21176 check_badmailfrom hooking mail
2005-12-13 21:56:35.822206500 21176 Loading check_badrcptto_patterns
2005-12-13 21:56:35.822710500 21176 check_badrcptto_patterns hooking rcpt
2005-12-13 21:56:35.825279500 21176 Loading check_badrcptto
2005-12-13 21:56:35.825777500 21176 check_badrcptto hooking rcpt
2005-12-13 21:56:35.828036500 21176 Loading check_spamhelo
2005-12-13 21:56:35.828550500 21176 check_spamhelo hooking ehlo
2005-12-13 21:56:35.828883500 21176 check_spamhelo hooking helo
2005-12-13 21:56:35.832522500 21176 Loading check_goodrcptto extn -
2005-12-13 21:56:35.833245500 21176 check_goodrcptto hooking rcpt
2005-12-13 21:56:35.835768500 21176 Loading rcpt_ok
2005-12-13 21:56:35.836261500 21176 rcpt_ok hooking rcpt
2005-12-13 21:56:36.067209500 eval Can't locate File/MMagic.pm in @INC (@INC contains: lib /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/share/qpsmtpd/plugins/tnef2mime line 27, <DATA> line 2.
2005-12-13 21:56:36.067327500 BEGIN failed--compilation aborted at /usr/share/qpsmtpd/plugins/tnef2mime line 27, <DATA> line 2.

I know that's a lot of info.  Any help would be appreciated.

-Dev

Offline holck

  • *
  • 322
  • +1/-0
SMTP not working after upgrade to 7.0b8
« Reply #1 on: December 14, 2005, 10:26:22 AM »
One error I can spot is
Code: [Select]
2005-12-13 21:56:36.067209500 eval Can't locate File/MMagic.pm in @INC (@INC contains: lib /usr/lib/perl5/5.8.5/i386-linux-thread-multi
Seems like you need to install the Perl module File::MMagic.
......

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SMTP not working after upgrade to 7.0b8
« Reply #2 on: December 14, 2005, 04:11:57 PM »
Quote from: "devlynd"

...
Dec 13 20:52:00 file-server ssl-smtpfront-qmail: Starting ssl-smtpfront-qmail:
Dec 13 20:52:00 file-server ssl-smtpfront-qmail: Starting ssl-smtpfront-qmail succeeded
...


ssl-smtpfront-qmail is incompatible with 7.0, which uses an SSL wrapped version of qpsmtpd for ssmtp service. (Note however that this doesn't explain your SMTP problem).

Ideally the vendor of your contribs will have already done compatibility testing with 7.0, and will have corrected any problems or published workarounds. That doesn't seem to have been the case for the contribs you have installed.

Please update the wiki with your experiences. Thanks.

devlynd

Re: SMTP not working after upgrade to 7.0b8
« Reply #3 on: December 14, 2005, 08:35:09 PM »
Quote from: "CharlieBrady"


ssl-smtpfront-qmail is incompatible with 7.0, which uses an SSL wrapped version of qpsmtpd for ssmtp service. (Note however that this doesn't explain your SMTP problem).

Ideally the vendor of your contribs will have already done compatibility testing with 7.0, and will have corrected any problems or published workarounds. That doesn't seem to have been the case for the contribs you have installed.

Please update the wiki with your experiences. Thanks.


Actually as soon as I read your post I realized that I forgot to mention that I had installed the secure email contrib as well (which is where ssl-smtpfront-qmail is from.)  I'll look for issues w/that contrib and hopefully get this figured out.  I will, indeed, update the wiki when I get this straightened out.  Thanks again.

-Dev

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SMTP not working after upgrade to 7.0b8
« Reply #4 on: December 14, 2005, 09:43:32 PM »
Quote from: "devlynd"

Actually as soon as I read your post I realized that I forgot to mention that I had installed the secure email contrib as well (which is where ssl-smtpfront-qmail is from.)  I'll look for issues w/that contrib and hopefully get this figured out.


Installing that contrib in 7 is pointless, as 7 already includes pretyy much all its functionality.

devlynd

Re: SMTP not working after upgrade to 7.0b8
« Reply #5 on: December 14, 2005, 10:01:27 PM »
Quote from: "CharlieBrady"
Quote from: "devlynd"

Actually as soon as I read your post I realized that I forgot to mention that I had installed the secure email contrib as well (which is where ssl-smtpfront-qmail is from.)  I'll look for issues w/that contrib and hopefully get this figured out.


Installing that contrib in 7 is pointless, as 7 already includes pretyy much all its functionality.



What I meant was that I had it installed before I was forced to do the upgrade.  I have not tried to reinstall it or any other contribs.  I am actually going through the system and removing the contribs I had installed previously.  At this point I am just trying to get SMTP to 'wake up.'  Everything else seems to be fine (domain controller, samba, imap, etc.)

Thanks,
-Dev

devlynd

SMTP not working after upgrade to 7.0b8
« Reply #6 on: December 14, 2005, 10:07:11 PM »
Quote from: "holck"
One error I can spot is
Code: [Select]
2005-12-13 21:56:36.067209500 eval Can't locate File/MMagic.pm in @INC (@INC contains: lib /usr/lib/perl5/5.8.5/i386-linux-thread-multi
Seems like you need to install the Perl module File::MMagic.


I have confirmed that perl-File-MMagic-1.22-1 is installed on the system.  However, I am getting the following log entries in qpsmtpd/current.  It seems to generate the messages every few seconds.

2005-12-14 13:03:50.044044500 12064 trying to get config for plugins
2005-12-14 13:03:50.045384500 12064 loading plugins from /usr/share/qpsmtpd/plugins
2005-12-14 13:03:50.052725500 12064 Loading auth/auth_cvm_unix_local cvm_socket /var/lib/cvm/cvm-unix-local.socket enable_smtp no enable_ssmtp no
2005-12-14 13:03:50.057449500 12064 Loading check_earlytalker
2005-12-14 13:03:50.058212500 12064 check_earlytalker hooking connect
2005-12-14 13:03:50.060586500 12064 Loading count_unrecognized_commands 4
2005-12-14 13:03:50.061246500 12064 count_unrecognized_commands hooking unrecognized_command
2005-12-14 13:03:50.063678500 12064 Loading check_relay
2005-12-14 13:03:50.064294500 12064 check_relay hooking connect
2005-12-14 13:03:50.066758500 12064 Loading check_norelay
2005-12-14 13:03:50.067365500 12064 check_norelay hooking connect
2005-12-14 13:03:50.074116500 12064 Loading require_resolvable_fromhost
2005-12-14 13:03:50.074666500 12064 require_resolvable_fromhost hooking mail
2005-12-14 13:03:50.199123500 12064 Loading check_basicheaders
2005-12-14 13:03:50.199656500 12064 check_basicheaders hooking data_post
2005-12-14 13:03:50.202595500 12064 Loading check_badmailfrom
2005-12-14 13:03:50.203112500 12064 check_badmailfrom hooking rcpt
2005-12-14 13:03:50.203448500 12064 check_badmailfrom hooking mail
2005-12-14 13:03:50.205847500 12064 Loading check_badrcptto_patterns
2005-12-14 13:03:50.206342500 12064 check_badrcptto_patterns hooking rcpt
2005-12-14 13:03:50.208883500 12064 Loading check_badrcptto
2005-12-14 13:03:50.209371500 12064 check_badrcptto hooking rcpt
2005-12-14 13:03:50.211827500 12064 Loading check_spamhelo
2005-12-14 13:03:50.212356500 12064 check_spamhelo hooking ehlo
2005-12-14 13:03:50.212708500 12064 check_spamhelo hooking helo
2005-12-14 13:03:50.216394500 12064 Loading check_goodrcptto extn -
2005-12-14 13:03:50.217134500 12064 check_goodrcptto hooking rcpt
2005-12-14 13:03:50.219666500 12064 Loading rcpt_ok
2005-12-14 13:03:50.220179500 12064 rcpt_ok hooking rcpt
2005-12-14 13:03:50.503621500 eval Can't locate File/MMagic.pm in @INC (@INC contains: lib /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/share/qpsmtpd/plugins/tnef2mime line 27, <DATA> line 2.
2005-12-14 13:03:50.503725500 BEGIN failed--compilation aborted at /usr/share/qpsmtpd/plugins/tnef2mime line 27, <DATA> line 2.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
SMTP not working after upgrade to 7.0b8
« Reply #7 on: December 14, 2005, 10:12:53 PM »
Quote from: "devlynd"

I have confirmed that perl-File-MMagic-1.22-1 is installed on the system.


I'm pretty sure you'll find that's an SME 6.x compatible RPM, not a 7.x one. Same version, but different pathnames inside the RPM. Have a look at rpm -qiv perl-File-MMagic-1.22-1 (and rpm -qlv ...) and see where and when it was built (and what files it contains). Then remove it, and install the RPM included on the SME 7.0b8 CDROM.

devlynd

SMTP not working after upgrade to 7.0b8
« Reply #8 on: December 14, 2005, 11:03:49 PM »
Quote from: "CharlieBrady"
Quote from: "devlynd"

I have confirmed that perl-File-MMagic-1.22-1 is installed on the system.


I'm pretty sure you'll find that's an SME 6.x compatible RPM, not a 7.x one. Same version, but different pathnames inside the RPM. Have a look at rpm -qiv perl-File-MMagic-1.22-1 (and rpm -qlv ...) and see where and when it was built (and what files it contains). Then remove it, and install the RPM included on the SME 7.0b8 CDROM.


Charlie and holck, I owe you both a cookie. :)

The version File-MMagic that was on the system was 1.22-1.  The version in beta 8 is 1.21-2.  It probably didn't upgrade because a higher version number existed on the system.  I couldn't do a straight rpm -e due to a bunch of dependencies.  I had to do a rpm -Uvh --force, which I know is ugly, but it seemed to work.  I am able to send and receive mail again.

Thanks again for all the help.  I do appreciate it.

-Dev