1 (edited by ereese 2013-03-04 20:16:19)

Topic: sa-update does not work on freebsd 9.1 install completes

==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Linux/BSD distribution name and version: freebsd 9.1
- Related log if you're reporting an issue:
====
After a fresh install on freebsd 9.1 iRedmail will not send or receive.  Everything seems to work however when I checked to see what was wrong, spamd -D shows that sa-update can not update and since he can't no rules are created with causes spamd to not start and then amasvisd wont start either, so no mail is processed at all.

Is there a patch to fix sa-update so it will work and if so how do we get it and apply it.  Can it be added to the install so we can just re-install ?

# spamd -D
Mar  4 07:15:57.232 [2842] dbg: logger: adding facilities: all
Mar  4 07:15:57.233 [2842] dbg: logger: logging level is DBG
Mar  4 07:15:57.241 [2842] dbg: logger: calling setlogsock(unix)
Mar  4 07:15:57.241 [2842] dbg: logger: opening syslog with unix socket
Mar  4 07:15:57.241 [2842] dbg: logger: successfully connected to syslog/unix
Mar  4 07:15:57.241 [2842] dbg: logger: successfully added syslog method
Mar  4 07:15:57.241 [2842] dbg: spamd: will perform setuids? 1
Mar  4 07:15:57.242 [2842] dbg: spamd: creating INET socket:
Mar  4 07:15:57.242 [2842] dbg: spamd: [...] Listen: 128
Mar  4 07:15:57.243 [2842] dbg: spamd: [...] LocalAddr: 127.0.0.1
Mar  4 07:15:57.243 [2842] dbg: spamd: [...] LocalPort: 783
Mar  4 07:15:57.243 [2842] dbg: spamd: [...] Proto: 6
Mar  4 07:15:57.243 [2842] dbg: spamd: [...] ReuseAddr: 1
Mar  4 07:15:57.243 [2842] dbg: spamd: [...] Type: 1
Mar  4 07:15:57.244 [2842] dbg: logger: adding facilities: all
Mar  4 07:15:57.245 [2842] dbg: logger: logging level is DBG
Mar  4 07:15:57.245 [2842] dbg: generic: SpamAssassin version 3.3.2
Mar  4 07:15:57.245 [2842] dbg: generic: Perl 5.014002, PREFIX=/usr/local, DEF_RULES_DIR=/usr/local/share/spamassassin, LOCAL_RULES_DIR=/usr/local/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/db/spamassassin
Mar  4 07:15:57.245 [2842] dbg: config: timing enabled
Mar  4 07:15:57.246 [2842] dbg: config: score set 0 chosen.
Mar  4 07:15:57.250 [2842] dbg: dns: is Net::DNS::Resolver available? yes
Mar  4 07:15:57.251 [2842] dbg: dns: Net::DNS version: 0.72
Mar  4 07:15:57.252 [2842] dbg: spamd: Preloading modules with HOME=/tmp/spamd-2842-init
Mar  4 07:15:57.253 [2842] dbg: config: using "/usr/local/etc/mail/spamassassin" for site rules pre files
Mar  4 07:15:57.253 [2842] dbg: config: read file /usr/local/etc/mail/spamassassin/init.pre
Mar  4 07:15:57.254 [2842] dbg: config: read file /usr/local/etc/mail/spamassassin/v310.pre
Mar  4 07:15:57.254 [2842] dbg: config: read file /usr/local/etc/mail/spamassassin/v312.pre
Mar  4 07:15:57.254 [2842] dbg: config: read file /usr/local/etc/mail/spamassassin/v320.pre
Mar  4 07:15:57.255 [2842] dbg: config: read file /usr/local/etc/mail/spamassassin/v330.pre
Mar  4 07:15:57.255 [2842] dbg: config: using "/usr/local/share/spamassassin" for sys rules pre files
Mar  4 07:15:57.255 [2842] dbg: config: using "/usr/local/share/spamassassin" for default rules dir
Mar  4 07:15:57.255 [2842] error: config: no rules were found! Do you need to run 'sa-update'?
config: no rules were found!  Do you need to run 'sa-update'?

# sa-update
http: GET http://spamassassin.apache.org/updates/MIRRORED.BY" request failed: 404 Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /updates/MIRRORED.BY&quot; was not found on this server.</p> <hr> <address>Apache/2.4.4 (Unix) OpenSSL/1.0.0g Server at spamassassin.apache.org Port 80</address> </body></html>
error: no mirror data available for channel updates.spamassassin.org
channel: MIRRORED.BY contents were missing, channel failed

Thanks,
ET-SR

2

Re: sa-update does not work on freebsd 9.1 install completes

Reference: http://www.iredmail.org/forum/topic4283 … amd64.html

Please execute "sa-update" after you checked above link and patched, then "sa-compile" and "freshclam".
If all goes well, all mail services should run as expected. A system reboot is recommended if possible.

3

Re: sa-update does not work on freebsd 9.1 install completes

ZhangHuangbin wrote:

Reference: http://www.iredmail.org/forum/topic4283 … amd64.html

Please execute "sa-update" after you checked above link and patched, then "sa-compile" and "freshclam".
If all goes well, all mail services should run as expected. A system reboot is recommended if possible.

Thank you so much patch worked.