Thursday, November 28, 2013

Sendmail ‘collect: premature EOM: unexpected close’



Sendmail 

‘collect: premature EOM: unexpected close’


If you are getting a ‘collect: premature EOM: unexpected close’ in your mail logs, or if you have people complaining that they cannot send email to your server and you have this error, then there's a solution to the problem.


I had over time installed several Blacklist denials in my sendmail.mc config file, and that perhaps one of these was not responding anymore.
By commenting out each Blacklist deny one at a time, I discovered which one was no longer responding. To comment out a line in the main sendmail.mc file, simply put dnl at the start of the line. 

FEATURE(`dnsbl’,`sbl-xbl.spamhaus.org’,`550 Denied RBL $&{client_addr} by sbl-xbl.spamhaus.org”’)dnl
FEATURE(`dnsbl',`dnsbl.sorbs.net',`"554 Rejected " $&{client_addr} " Found in dnsbl.sorbs.net"',`t')dnl

Tuesday, November 12, 2013

Android Pushes Past 80% Market Share

http://www.idc.com/getdoc.jsp?containerId=prUS24442013
http://www.zdnet.com/windows-phone-gains-but-android-rules-7000023096/
http://www.gartner.com/newsroom/id/2623415


 IDC found that "By itself, Nokia accounted for 93.2 percent of
all the Windows Phone-powered smartphones shipped during the quarter"


Top Four Operating Systems, Shipments, and Market Share, Q3 2013 (Units in Millions) 

Operating System
3Q13 Shipment Volumes
3Q13 Market Share
3Q12 Shipment Volumes
3Q12 Market Share
Year-Over-Year Change
Android
211.6
81.0%
139.9
74.9%
51.3%
iOS
33.8
12.9%
26.9
14.4%
25.6%
Windows Phone
9.5
3.6%
3.7
2.0%
156.0%
BlackBerry
4.5
1.7%
7.7
4.1%
-41.6%
Others
1.7
0.6%
8.4
4.5%
-80.1%
Total
261.1
100.0%
186.7
100.0%
39.9%
Source: IDG (November 2013)




Samsung smartphone sales surge,
while Apple gets a small boost from iPhone 5S




Worldwide Smartphone Sales to End Users by Vendor in 3Q13 (Thousands of Units)
Company
3Q13
Units
3Q13 Market Share (%)
3Q12
Units
3Q12 Market Share (%)
Samsung
80,356.8
32.1
55,054.2
32.1
Apple
30,330.0
12.1
24,620.3
14.3
Lenovo
12,882.0
5.1
6,981.0
4.1
LG Electronics
12,055.4
4.8
6,986.1
4.1
Huawei
11665.7
4.7
7,804.3
4.5
Others
102941.8
41.1
70206.8
40.9
Total
250,231.7
100.0
171,652.7
100.0
Source: Gartner (November 2013)




Will Windows Phone overtake the iPhone in Europe in 2014?


The latest report from Kantar Worldpanel ComTech has plenty of good news for Windows Phone.
In Italy Windows PHone has a 16.1% market share to the iPhone's 10.1%.



Apple Gets “Significant Bounce” On 5c, 5s iPhones; Android Still Trumps With 71% Share Of All Sales


Kantar Worldpanel ComTech, the WPP market research division that provides a rolling check-in on how smartphones are selling in key markets, has put out its latest figures this morning covering the 12 weeks that ended October 31. It looks like the debut of new iPhones from Apple have given the company a “signficant bounce” in sales. But even with the launch of not one but two new models — the colorful 5c and elegant 5s — the impact of incremental upgrades has not been as strong as last year’s debut of the iPhone 5. All in all, Kantar says Android took 71% of all sales across 12 key markets versus 21% for the iPhone.
Specifically, in important markets like the U.S., Android took nearly 53% of sales. In Europe, Android accounted for nearly 71% of sales collectively across Britain, Germany, France, Italy and Spain.





Tuesday, October 29, 2013

Blogger +1 Button


https://developers.google.com/+/web/+1button/

You can add and customize the +1 button to meet the needs of your website, such as modifying the button size and load technique. By adding the +1 button to your website, you allow your users to recommend your content to their circles and drive traffic to your site. The +1 button can also improve the time spent on your site by providing recommendations for further reading.


A Simple Button

The easiest method for including a +1 button on your page is to include the necessary JavaScript resource and to add a +1 button tag:
The script must be loaded from the HTTPS protocol and can be included from any point on the page without restriction.



Samsung continues as the leading smartphone vendor with more than 30 percent,
of the smartphone market with Apple solidly in 2nd place with 13 percent of the market.


http://www.zdnet.com/q3-2013-smartphone-data-shows-samsung-and-apple-continue-dominance-7000022555/
http://www.idc.com/getdoc.jsp?containerId=prUS24418013
http://www.juniperresearch.com/viewpressrelease.php?pr=408


Top Five Smartphone Vendors, Shipments, and Market Share, Q3 2013 (Units in Millions) 
Vendor
3Q13 Unit Shipments
3Q13 Market Share
3Q12 Unit Shipments
3Q12 Market Share
Year-over-year Change
Samsung
81.2
31.4%
57.8
31.0%
40.5%
Apple
33.8
13.1%
26.9
14.4%
25.7%
Huawei
12.5
4.8%
7.1
3.8%
76.5%
Lenovo
12.3
4.7%
6.9
3.7%
77.6%
LG
12.0
4.6%
7.0
3.8%
71.4%
Others
106.6
41.3%
80.5
43.2%
32.4%
Total
258.4
100.0%
186.2
100.0%
38.8%



Source: IDC Worldwide Mobile Phone Tracker, October 29, 2013



Top Five Total Mobile Phone Vendors, Shipments, and Market Share, 2013 Q3 (Units in Millions) 
Vendor
3Q13 Unit Shipments
3Q13 Market Share
3Q12 Unit Shipments
3Q12 Market Share
Year-over-year Change
Samsung
115.4
24.7%
103.8
23.4%
11.2%
Nokia
64.6
13.8%
82.9
18.7%
-22.1%
Apple
33.8
7.2%
26.9
6.1%
25.7%
LG
16.8
3.6%
14.4
3.3%
16.7%
Huawei
14.6
3.1%
11.2
2.5%
30.4%
Others
222.7
47.6%
203.5
46.0%
9.4%
Total
467.9
100.0%
442.7
100.0%
5.7%

Source: IDC Worldwide Mobile Phone Tracker, October 29, 2013






Saturday, October 26, 2013

Fedora 19 spamassassin sysconfig SPAMDOPTIONS

THE ERROR : "spamd: unauthorized connection from ..." 

# systemctl status spamassassin.service
spamassassin.service - Spamassassin daemon
   Loaded: loaded (/usr/lib/systemd/system/spamassassin.service; enabled)
   Active: inactive (dead) since Sat 2013-10-26 22:55:22 EEST; 1s ago
  Process: 23586 ExecStart=/usr/bin/spamd --pidfile /var/run/spamd.pid $SPAMDOPTIONS (code=exited, status=0/SUCCESS)
  Process: 23583 ExecStartPre=/sbin/portrelease spamd (code=exited, status=0/SUCCESS)
 Main PID: 23598 (code=exited, status=0/SUCCESS)
   CGroup: name=systemd:/system/spamassassin.service

Oct 26 21:42:57  spamd[23598]: prefork: child states: IS
Oct 26 21:42:57  spamd[23598]: prefork: child states: II
Oct 26 21:42:57  systemd[1]: Started Spamassassin daemon.
Oct 26 21:46:38  spamd[23599]: spamd: unauthorized connection from ... [192.168.1.26] at port 52573 at /usr/bin/spamd line 1271.

THE SOLUTION : "-A 127.0.0.1,192.168.1.26" 

# cat /etc/sysconfig/spamassassin
# Options to spamd
SPAMDOPTIONS="-d -c -m5 -H -A 127.0.0.1,192.168.1.26"





Friday, October 25, 2013

Fedora 19 systemctl sendmail clamav milter


http://awbsworld.de/archives/125

http://serverfault.com/questions/513005/clamav-warning-no-clamd-server-appears-to-be-available/513006#513006
http://savs.hcc.edu.tw/~chuavv/articles/ClamAV-en.html
http://forums.fedoraforum.org/showthread.php?t=235160

Step 1: Install the necessary rpm packages

sudo yum install clamav-scanner clamav-server clamav-milter clamav-update

Step 2: Configure clamav

Edit /etc/freshclam.conf and remove or comment out the following line and adjust the 
values according to your needs : 


# Comment or remove the line below.
Example
Run freshclam to get an initial virus database.Edit " /etc/clamd.d/scan.conf " and remove or comment out the following line and again adjust the values according to your needs. The values for TCPSocket and TCPAddr need to be enabled.

Step 3: Enabled clamav and regular virus database updates via freshclam

Start the clamav scanner deamon with 
            systemctl start clamd@scan.service. 
Check if the service is running via 
            systemctl status clamd@scan.service. 

To permanently enabled the clamav scanner deamon at startup run 
            systemctl enable clamd@scan.service.

In /etc/mail/clamav-milter.conf:
I also added a line:

AddHeader Add
So it adds 'X-Virus-Status:' and 'X-Virus-Scanned:' headers to the e-mails (so I would know it was working)

And then tell sendmail to call clamav-milter by adding the 2 lines below:
INPUT_MAIL_FILTER(`clamav',`S=local:/var/run/clamav-milter/clamav-milter.socket,F=, T=S:4m;R:4m')
define(`ConfINPUT_MAIL_FILTERS', `clamav')

~ ~ ~ ~ ~ ~ ~ ~ ~ 
IMPORTANT : 

LocalSocket from " /etc/clamd./scan.conf " 

must be the same compared with 
ClamdSocket from " /etc/mail/clamav-milter.conf "

If the sockets are not the same , in /var/log/messages appears the error :

" clamav-milter : WARNING : No clamd server appears to be available "  

IF we leave "LocalSocketGroup virusgroup" and do not set "LocalSocketGroup clamscan" 

in "/etc/clamd./scan.conf" 
in the logs will appear something like this : 
<< 
 TCP: Bound to address 127.0.0.1 on port 3310
 clamd : TCP: Setting connection queue length to 200
 clamd : LOCAL: Unix socket file /var/run/clamd.scan/clamd.sock
 clamd : LOCAL: Setting connection queue length to 200
 clamd : Unknown group virusgroup
 clamd : Socket file removed.
 clamd : ERROR: Unknown group virusgroup
 clamd : Socket file removed.
 systemd : clamd@scan.service: main process exited, code=exited, status=1/FAILURE
 systemd : Unit clamd@scan.service entered failed state.
>> 

~ ~ ~ ~ ~ ~ ~ ~ ~ 


/etc/clamd./scan.conf 

# Comment or remove the line below.
# Example
LogFile /var/log/clamd.scan
PidFile /var/run/clamd.scan/clamd.pid
LocalSocket /var/run/clamd.scan/clamd.sock
LocalSocketGroup clamscan
TCPSocket 3310
TCPAddr 127.0.0.1

~ ~ ~ 


/etc/mail/clamav-milter.conf 

# Comment or remove the line below.
#Example
MilterSocket /var/run/clamav-milter/clamav-milter.socket
MilterSocket inet:7357
#ClamdSocket tcp:localhost:3310
ClamdSocket unix:/var/run/clamd.scan/clamd.sock
AddHeader Add


~ ~ ~ 


# rpm -qa | grep clam

clamav-update-0.98-2.fc19.x86_64
clamav-server-systemd-0.98-2.fc19.noarch
clamav-server-0.98-2.fc19.x86_64
claws-mail-plugins-clamd-3.9.2-7.fc19.x86_64
clamav-milter-0.98-2.fc19.x86_64
clamav-scanner-0.98-2.fc19.noarch
clamav-lib-0.98-2.fc19.x86_64
clamav-filesystem-0.98-2.fc19.noarch
clamtk-4.45-1.fc19.noarch
clamav-0.98-2.fc19.x86_64
clamav-milter-systemd-0.98-2.fc19.noarch
clamav-data-empty-0.98-2.fc19.noarch
clamav-scanner-systemd-0.98-2.fc19.noarch

# uname -a

Linux 3.11.6-200.fc19.x86_64 #1 SMP Fri Oct 18 22:34:18 UTC 2013 x86_64 GNU/Linux
# cat /etc/fedora-release 
Fedora release 19 (Schrödinger’s Cat)


if there's no log file ( /var/log/clamd.scan ) or it has owner and group root 
instead of clamscan , then ~ in the logs will appear something like this : 

Feb  6 21:50:30 abxrds systemd[1]: Starting Generic clamav scanner daemon...
Feb  6 21:50:30 abxrds systemd[1]: Started Generic clamav scanner daemon.
Feb  6 21:50:30 abxrds clamd[20802]: ERROR: Can't initialize the internal logger
Feb  6 21:50:30 abxrds clamd[20802]: ERROR: Can't open /var/log/clamd.scan in append mode (check permissions!).
Feb  6 21:50:30 abxrds systemd[1]: clamd@scan.service: main process exited, code=exited, status=1/FAILURE
Feb  6 21:50:30 abxrds systemd[1]: Unit clamd@scan.service entered failed state.
Feb  6 21:50:30 abxrds systemd[1]: clamd@scan.service holdoff time over, scheduling restart.
Feb  6 21:50:30 abxrds systemd[1]: Stopping Generic clamav scanner daemon...
Feb  6 21:50:30 abxrds systemd[1]: Starting Generic clamav scanner daemon...
Feb  6 21:50:30 abxrds systemd[1]: clamd@scan.service start request repeated too quickly, refusing to start.
Feb  6 21:50:30 abxrds systemd[1]: Failed to start Generic clamav scanner daemon.
Feb  6 21:50:30 abxrds systemd[1]: Unit clamd@scan.service entered failed state.