#StackBounty: #ubuntu #exim #spamassasin spamassassin does not honour local.cf

Bounty: 100

I updated my /etc/spamassassin/local.cf spamassassin file to update some score rules. However, even after restarting spamassassin (via service), the new score are not shown in spam emails. In fact, nothing in that file seem to influence how spamassassin work.

I use exim as my MTA but that should not matter. All packages were installed via apt-get and are at the latest version for 14.04.

For example, I have this:

score HTML_MESSAGE 2.0

define in /etc/spamassassin/local.cf. I restarted both exim and spamassassin. spamassassing --lint shows that there are no errors int hat file. Then got yet another spam with this:

0.0 HTML_MESSAGE           BODY: HTML included in message

In the X-Spam-Report field.

I ran spamassassin -D < spam and the order of loading of cfg files seems to be wrong:

Jun  8 13:34:07.300 [21668] dbg: config: read file /etc/spamassassin/local.cf
...
Jun  8 13:34:07.600 [21668] dbg: config: read file /var/lib/spamassassin/3.004000/updates_spamassassin_org/50_scores.cf
...
Jun  8 13:34:07.787 [21668] dbg: config: read file /var/lib/spamassassin/3.004000/updates_spamassassin_org/73_sandbox_manual_scores.cf
Jun  8 13:34:07.788 [21668] dbg: config: fixed relative path: /var/lib/spamassas
sin/3.004000/updates_spamassassin_org/local.cf
...

What is going on?

Based on a comment from Centimane: I tried strace -f -e trace=file spamassassin -D < spam with the same result: Spamassassin is reading system files after the local.cf file. Thus, trashing any score changes.


Get this bounty!!!

#StackBounty: #linux #ubuntu #boot #grub Ubuntu/Windows 10 Dualboot – Grub missing

Bounty: 100

I previously installed a standalone copy of Windows 10 on my Microsoft Surfacebook. I intend to set up Ubuntu dual-boot alongside it. Unfortunately, after installation following these instructions, it seems that Windows still boots over Ubuntu — the GRUB loader is ignored?

I have tried the following:

  • Running boot repair from Live Ubuntu USB. This apparently runs and does some things, which prevents both Windows and Ubuntu from booting altogether — gets stuck with the Surfacebook loading animation, screen flashes, goes into UEFI.
  • Going into windows and trying to change the boot according to this post.
  • Installing Ubuntu by itself — for some reason, the GRUB refuses to show up, and no boot-repair operations are of any help.

Here is the info output of my boot-repair program: https://pastebin.com/N1J4H9eF

Here is a screenshot of GParted
screenshot of gparted for my SSD

Any help would be greatly appreciated. Been wrestling with this problem for more than a few days now, and just can’t figure it out… would prefer not to do backend development on Windows!


Get this bounty!!!

#StackBounty: #ubuntu #email #postfix #sendmail #smtp Send mails on Ubuntu 16.04 – Failed to authenticate on SMTP server with username …

Bounty: 50

I’m trying to send mails on my ubuntu server (from gmail). I have the Starter Cloud package from Scaleway. I have installed sendmail on my ubuntu server with the following tutorial.

In my Laravel application I have the following configuration (mailtrap for testing):

MAIL_DRIVER=smtp
MAIL_PORT=2525
MAIL_HOST=smtp.mailtrap.io
MAIL_USERNAME=1f129791a7e29f
MAIL_FROM_NAME="My name"
MAIL_FROM_ADDRESS=myname@gmail.com
MAIL_PASSWORD=passwordmailtrap

But when I try to send the email I’m getting the following error:

enter image description here

What could be my problem here? Or should I follow this tutorial and install/configure postfix on my server? When I try this on my local environment (Homestead) this works without problems.


Get this bounty!!!

#StackBounty: #http #ubuntu #redirect #nginx #https How do you redirect a bare "example.com" domain to "https://example….

Bounty: 500

Title really says it all. I cannot get my domain to redirect from site.com to http://example.com.

My nginx conf is as follows with sensitive paths removed. Here is a GIST link to all my nginx setup, it is currently the only enabled domain in my entire nginx:

https://gist.github.com/rublev/c75cc58a5ca051ddafa99c00673ea911

Console output on my local vs my server:

rublev@rublevs-MacBook-Pro ~
• curl -I rublev.io
^C
rublev@rublevs-MacBook-Pro ~
• ssh r
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-75-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

78 packages can be updated.
0 updates are security updates.


Last login: Fri May 12 16:41:35 2017 from 198.84.225.249
rublev@ubuntu-512mb-tor1-01:~$ curl -I rublev.io
HTTP/1.1 200 OK
Server: nginx/1.10.0 (Ubuntu)
Date: Fri, 12 May 2017 16:41:43 GMT
Content-Type: text/html
Content-Length: 339
Last-Modified: Thu, 20 Apr 2017 20:47:12 GMT
Connection: keep-alive
ETag: "58f91e50-153"
Accept-Ranges: bytes

I am at my wits end, I truly have no idea what to do now, I’ve spent weeks trying to get this working.


Get this bounty!!!

#StackBounty: #android #ubuntu #password-manager #wifi How to store online/in cloud WIFI passwords?

Bounty: 100

I’m using Ubuntu, and I need a password manager that stores automatically wifi ESSIDs/passwords (such as wap keys) as I save them.
Moreover, it should be import all wifi keys already saved.
Everything should be stored online and accessible from an Android app.

LastPass doesn’t work with WIFI passwords (not on Ubuntu, unfortunately).

If you can suggest one such software, please provide documentation for my specific request.


Get this bounty!!!

#StackBounty: #ubuntu #iscsi target service fails to start after volume was mounted via bcache

Bounty: 50

I’m using targetcli to share some LVM volumes over iSCSI. Normally everything works, but yesterday I mounted a volume differently than normal: I placed bcache over it planning to speed up access to the volume with my local SSD. The same volume was mounted previously without bcache with no ill-effect.

Everything seemed to work fine: the volume was fast and responsive and I easily copied 40GB of data to it (SSD cache partition is 64GB). Then I shut down the development machine using the LUN and also restarted the server.

Since then, the target service won’t start:

Output of systemctl status -l target

 target.service - LSB: The Linux SCSI Target service
   Loaded: loaded (/etc/init.d/target; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since ned 2017-05-07 21:47:12 CEST; 8s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3264 ExecStart=/etc/init.d/target start (code=exited, status=1/FAILURE)

maj 07 21:47:12 htpc target[3264]:  * Loaded fabric module tcm_fc
maj 07 21:47:12 htpc target[3264]:  * Loaded fabric module ib_srpt
maj 07 21:47:12 htpc target[3264]:  * Loaded fabric module vhost_scsi
maj 07 21:47:12 htpc target[3264]:  * Loaded fabric module tcm_qla2xxx
maj 07 21:47:12 htpc target[3264]:  * Failed to load /etc/target/scsi_target.lio
maj 07 21:47:12 htpc target[3264]:  * Could not start The Linux SCSI Target
maj 07 21:47:12 htpc systemd[1]: target.service: Control process exited, code=exited status=1
maj 07 21:47:12 htpc systemd[1]: Failed to start LSB: The Linux SCSI Target service.
maj 07 21:47:12 htpc systemd[1]: target.service: Unit entered failed state.
maj 07 21:47:12 htpc systemd[1]: target.service: Failed with result 'exit-code'.

Manually checking what the issue might be turned up that the volume in question cannot be configured into the backstores/iblock.

The error returned when attempting to mount it is

Cannot configure StorageObject because device /dev/storage/my_device is already in use.

This device is based off the same LVM storage as every other device being shared over the same target.

I don’t know how target determines whether a volume is in use or not, but lsof tells me nothing and system / target logs are also silent on the subject. Just the “is in use” message.

I’m suspecting bcache “finds” the volume during initialisation scan and keeps it locked somehow. but neither /dev/ nor /sys/block show that the volume would register as a bcache device. I must be looking at the wrong places.


Get this bounty!!!

#StackBounty: #ubuntu #filesystems #samba #ubuntu-14.04 #cifs Samba/CIFS Ubuntu 14.04 mount error(112)

Bounty: 150

I’m trying to mount a samba network share on an Ubuntu 14.04 using cifs.

On the server, I’ve got the share running. I can already map it as a drive in Windows. The share has a username and password.

On the ubuntu machine, i’ve got /etc/samba/user where the credentials are saved. I also have the directory where I would mount the share /mounthere.

I have this on /etc/fstab

//192.168.1.1/sharename /mounthere cifs credentials=/etc/samba/user 0 0

When I do sudo mount -a I get this error:

mount error(112): Host is down

The host is not down. I’ve got it running on Windows. I’ve double checked the credentials and possible firewall issues.

I also have cifs-utils installed.

Can anyboby point me to the right direction.

Thank you!


Get this bounty!!!

#StackBounty: #ubuntu #video #lubuntu guvcview records audio but only first frame of video

Bounty: 250

guvcview used to work okay, but then there was an update and it stopped working. It records audio okay but only the first frame of video shows.

I’ve tried different rendering methods, no difference except -r 2 “software” doesn’t show the first image.

When I run guvcview --verbosity=2 there is one line that pops up an error.

WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

But that might be a red herring. Other info:

$ lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:    16.04
Codename:   xenial

$ uname -m
i686

$ guvcview --version
Guvcview version 2.0.3

I’ve had this problem for a long time, always hoping the next update fixes it. Any help would be appreciated.


Get this bounty!!!

#StackBounty: #ubuntu #ssh SSH Connections Timout after multiple connections

Bounty: 100

So i have making a control panel of sorts with php on my webserver that is able to send commands to my dedicated server (remote server) via ssh2.

This works fine, however i have noticed that after a few times of it reconnecting to ssh2 it stops working and just times out on the connection.
(It also does not work trying to ssh directly from the server to the target)

I have flushed iptables but that seems to have no effect.

I checked auth.log and the system log but neither seem to show up anything about the failed connection.

The target server is running Ubuntu 16.04 and is an OVH server.

Could someone please offer suggestions on things i could try/check to resolve this issue? I thought since it’s an OVH server it might be getting picked up by their Anti-DDoS but as far as i am aware, there is no way for me to check that.

Traceroute to port 22 from the webserver – Unsuccessful

# traceroute -n -T -p 22 TARGET
traceroute to TARGET (TARGET), 30 hops max, 60 byte packets
 1  * * *
 2  185.145.200.13  0.293 ms  0.277 ms  0.316 ms
 3  185.145.200.11  0.195 ms  0.188 ms  0.208 ms
 4  * * *
 5  91.121.128.92  9.393 ms * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

Traceroute to port 22 from the webserver – Successful

traceroute -n -T -p 22 TARGET
traceroute to TARGET (TARGET), 30 hops max, 60 byte packets
 1  * * *
 2  185.145.200.13  0.335 ms  0.352 ms  0.297 ms
 3  185.145.200.11  0.273 ms  0.267 ms *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *


Get this bounty!!!

#StackBounty: #ubuntu #debian #kvm-virtualization #telnet #proxmox Can't telnet a server from vps

Bounty: 50

i try to understand why i can’t telnet this server 213.132.48.107 from any of my VPSs.
Well this ip is for a mail server i don’t own but our emails are not received by this server. when i checked the log i saw this error:

554 5.7.1 You are not allowed to connect.
Connection closed by foreign host.

I thought i’m in black list so i tried to telnet to that server from all my VPSs (7 VPSs) and always get the same error.

telnet 213.132.48.107 25
Trying 213.132.48.107...
Connected to 213.132.48.107.
Escape character is '^]'.
554 5.7.1 You are not allowed to connect.

But when i try from a dedicate server i can telnet.

I have contacted the server admin but didn’t get any response. I still don’t see any reason for them to block my IP address. we just installed the server and it’s used for regular emails only.

Please help me

My VPSs run debian/ubuntu/centos and all created created by proxmox


Get this bounty!!!