SiWapp and sendmail <SOLVED>

Questions specific to SolydK Back Office
User avatar
Tuna130
Posts: 60
Joined: 10 Aug 2013 05:40
Location: Spain

SiWapp and sendmail <SOLVED>

Postby Tuna130 » 08 Sep 2013 15:36

Siwapp requires sendmail, in order to send invoices by email. There seems to be some problem with the repositories. Please help.

Code: Select all

sudo apt-get install sendmail
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd       
De status informatie wordt gelezen... Klaar
Sommige pakketten konden niet geïnstalleerd worden. Dit kan betekenen dat u
een onmogelijke situatie gevraagd hebt of dat u de 'unstable'-distributie 
gebruikt en sommige benodigde pakketten nog vastzitten in 'incoming'.
De volgende informatie helpt u mogelijk verder:

De volgende pakketten hebben niet-voldane vereisten:
 sendmail : Vereisten: sendmail-bin maar het zal niet geïnstalleerd worden
E: Kan problemen niet verhelpen, u houdt defecte pakketten vast.
Sorry about Dutch language here, but first it says that I might be in unstable, requiring a package stuck in 'incoming' (I thought I was in testing), but then it says I am holding a broken package. I tried 'repair broken packages' from synaptic, and ran the default updater, but to no avail.

My sources list is:

Code: Select all

deb http://ftp.nluug.nl/os/Linux/distr/solydxk/packages/ solydxk main upstream import community
deb http://ftp.nluug.nl/os/Linux/distr/solydxk/debian/production testing main contrib non-free
deb http://ftp.nluug.nl/os/Linux/distr/solydxk/debian/production/multimedia testing main non-free
deb http://ftp.nluug.nl/os/Linux/distr/solydxk/debian/security testing/updates main contrib non-free
Nothing fishy there, it seems...

Thanks for looking at this issue...!
try SCE to AUX

User avatar
Arjen Balfoort
Site Admin
Posts: 9469
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: SiWapp and sendmail

Postby Arjen Balfoort » 08 Sep 2013 17:16

I moved your post to its own topic, and put the code in your post between code tags for readability.

You can find a manual on mail configuration for SiWapp here (from SolydK BO's product page):
http://solydxk.nl/content/SiWapp_SMTP_configuration.pdf

You can simply use the SMTP server of your ISP.
If you really want to use the server's own sendmail, and you need to install sendmail, I found you did not copy-paste all.
I had this when I tried to install sendmail:

Code: Select all

...
The following packages have unmet dependencies:
 sendmail : Depends: sendmail-bin but it is not going to be installed
            Depends: sensible-mda but it is not going to be installed
Now, when I first install sensible-mba (I don't know how to configure that):

Code: Select all

sudo apt-get install sensible-mba
And after that:

Code: Select all

sudo apt-get install sendmail
And I'm stuck in a loop:

Code: Select all

...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases..
I recommend to use SMTP or Gmail like the manual says.

P.S.: A while ago I posted a feature request at siwapp.org regarding the mail configuration: http://siwapp.uservoice.com/forums/2847 ... gs-section


SolydXK needs you!
Development | Testing | Translations

User avatar
Tuna130
Posts: 60
Joined: 10 Aug 2013 05:40
Location: Spain

Re: SiWapp and sendmail

Postby Tuna130 » 08 Sep 2013 21:08

Thanks Schoelje for your quik help! I'll delve into this. I need to read it all carefully.
try SCE to AUX

User avatar
Tuna130
Posts: 60
Joined: 10 Aug 2013 05:40
Location: Spain

Re: SiWapp and sendmail

Postby Tuna130 » 10 Sep 2013 15:18

Schoelje, I voted for your feature request in Siwapp!

The missing dependency of sesible.mda did not come up here on command line, and I don't understand the error message about a broken package. But if we don't need sendmail, why worry?

I followed the mail configuration guide, and choose for the Gmail smtp server settings, which was easy enough.

Too bad, when testing Siwapp hangs at blank page

Code: Select all

http://localhost/siwapp/invoices/update
The test invoice is not sent, and no error message. I tried different accounts and both tls and ssl. I also switched on Gmail's POP service and disabled IMAP, just to be sure. But no luck.

Do you know if there is a log file that can be looked at, to find out what is going wrong?
I tried a search with

Code: Select all

find -iname "*log*" -atime -1 >2 /dev/null
but did not find anything useful.

I found an interesting link about sendmail with Gmail, which actually worked!
http://bernaerts.dyndns.org/linux/75-de ... il-account

In above linked page: in exim4-config table, 6th line, port 587 is TLS encryption, use port 465 for SSL.

Above tutorial uses exim4 with sendmail. It sends a message from a text file with the cat command, piped to sendmail. It works, but how is that possible when sendmail would not even install...?

So, we've got a nice feature added. Back to Siwapp, but no effect, still hangs on sending.

By lack of better plans, tried to install sendmail again. This time through Synaptic, and here other packages are removed and installed than over command line apt-get. Synaptic wants to install sensible-mba (there it is), libpq5, and exim4-deamon-heavy, and instead of removing my just configured exim4 entirely only takes out exim4-deamon-light. Oops, error, repair broken packages first. Then, when repairing packages:
Er is een fout opgetreden
De volgende details worden verstrekt:

E: Kan problemen niet verhelpen, u houdt defecte pakketten vast.
E: Fout, pkgProblemResolver::Resolve maakte scheidingen aan, dit kan veroorzaakt worden door vastgehouden pakketten.
E: Kan afhankelijkheden niet corrigeren
E: Fout, pkgProblemResolver::Resolve maakte scheidingen aan, dit kan veroorzaakt worden door vastgehouden pakketten.
E: Kan afhankelijkheden niet corrigeren
This is Dutch for, again, you are holding broken packages. Do I have a problem on my machine?

OK, I hope someone else got any further on this. Thanks for thinking along!
try SCE to AUX

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: SiWapp and sendmail

Postby zerozero » 10 Sep 2013 15:31

the broken package message is actually an APT shortcoming: there's a replace that APT can't compute so it gives the unhelpful "broken packages" error
see below

Code: Select all

zerozero@home ~ $ sudo apt-get -s install sendmail
[sudo] password for zerozero: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 sendmail : Depends: sendmail-bin but it is not going to be installed
            Depends: sensible-mda but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
and now it will work

Code: Select all

zerozero@home ~ $ sudo apt-get -s install sendmail sendmail-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  blogilo dragonplayer ia32-libs-gtk-i386:i386 juk kalarm kdeplasma-addons konsolekalendar
  libevent-2.0-5 libmimelib4 libqpdf10 libsamplerate0:i386 libspeexdsp1:i386
  plasma-containments-addons plasma-desktopthemes-artwork plasma-runners-addons
  plasma-wallpapers-addons sweeper
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  sendmail-base sendmail-cf sensible-mda
Suggested packages:
  sendmail-doc rmail logcheck resolvconf sasl2-bin
The following packages will be REMOVED:
  exim4-config
The following NEW packages will be installed:
  sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
0 upgraded, 5 newly installed, 1 to remove and 0 not upgraded.
Remv exim4-config [4.80-7]
Inst sendmail-base (8.14.4-4 Debian:testing [all])
Inst sendmail-cf (8.14.4-4 Debian:testing [all])
Inst sendmail-bin (8.14.4-4 Debian:testing [amd64])
Inst sensible-mda (8.14.4-4 Debian:testing [amd64])
Inst sendmail (8.14.4-4 Debian:testing [all])
Conf sendmail-base (8.14.4-4 Debian:testing [all])
Conf sendmail-cf (8.14.4-4 Debian:testing [all])
Conf sendmail-bin (8.14.4-4 Debian:testing [amd64])
Conf sensible-mda (8.14.4-4 Debian:testing [amd64])
Conf sendmail (8.14.4-4 Debian:testing [all])
zerozero@home ~ $
bliss of ignorance

User avatar
Tuna130
Posts: 60
Joined: 10 Aug 2013 05:40
Location: Spain

Re: SiWapp and sendmail

Postby Tuna130 » 11 Sep 2013 08:01

Wow, that was amazingly simple. Many thanks! Great trick!
Now let's see if this helps on getting Siwapp to send an invoice ...
try SCE to AUX

User avatar
Tuna130
Posts: 60
Joined: 10 Aug 2013 05:40
Location: Spain

Re: SiWapp and sendmail

Postby Tuna130 » 11 Sep 2013 21:41

OK, sendmail works. Nice feature. I found this helpful:
http://linuxconfig.org/configuring-gmai ... mail-relay

But Siwapp still hangs when trying to send an invoice...
I guess I'll just save as pdf and send as attachment. I hope something comes up to get this working.
try SCE to AUX

User avatar
MAYBL8
Posts: 1487
Joined: 10 Mar 2013 18:41
Location: Maryland Heights, MO USA
Contact:

Re: SiWapp and sendmail

Postby MAYBL8 » 12 Sep 2013 02:28

Zero,
I was going to try to install sendmail but I get this :

Code: Select all

mail etc # apt-get install sendmail sendmail-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  sendmail-base sendmail-cf sensible-mda
Suggested packages:
  sendmail-doc rmail logcheck resolvconf
The following NEW packages will be installed:
  sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2,079 kB of archives.
After this operation, 3,607 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
serious bugs of sendmail-bin (-> 8.14.4-4) <unfixed>
 #717951 - sendmail-bin: fails to install: postinst gets stuck in an infinite loop
Summary:
 sendmail-bin(1 bug)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] n
**********************************************************************
****** Exiting with an error in order to stop the installation. ******
**********************************************************************
E: Sub-process /usr/sbin/apt-listbugs apt || exit 10 returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt || exit 10


User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: SiWapp and sendmail

Postby zerozero » 12 Sep 2013 22:25

Dan
that is the normal output when apt-listbugs:

1) finds a bug in a package that you are about to install or upgrade

Code: Select all

Retrieving bug reports... Done
Parsing Found/Fixed information... Done
serious bugs of sendmail-bin (-> 8.14.4-4) <unfixed>
 #717951 - sendmail-bin: fails to install: postinst gets stuck in an infinite loop
Summary:
 sendmail-bin(1 bug)
2) it shows apt-listbugs aborting the installation (at your request)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] n
**********************************************************************
****** Exiting with an error in order to stop the installation. ******
**********************************************************************
E: Sub-process /usr/sbin/apt-listbugs apt || exit 10 returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
bliss of ignorance

User avatar
Tuna130
Posts: 60
Joined: 10 Aug 2013 05:40
Location: Spain

Re: SiWapp and sendmail

Postby Tuna130 » 03 Oct 2013 14:31

Guess what? Siwapp sends emails now! I had some trouble after the big update (http://forums.solydxk.com/viewtopic.php?f=55&t=872) which was solved (!) and now the sendmail issue seems to be solved also.

Possibly because of the updated Siwapp package, or perhaps because I got sendmail working before Siwapp installed (again).... So anyone interested in Siwapp may want to play around with sendmail first. Thanks for all the help!

User avatar
Arjen Balfoort
Site Admin
Posts: 9469
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: SiWapp and sendmail

Postby Arjen Balfoort » 03 Oct 2013 14:41

Good to hear!


SolydXK needs you!
Development | Testing | Translations


Return to “SolydK Back Office”

Who is online

Users browsing this forum: No registered users and 1 guest