Author Topic: Wizard -> Email setup - cannot make it work  (Read 5324 times)

purps

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1402
  • If it ain't broke, tweak it
    • View Profile
Wizard -> Email setup - cannot make it work
« on: July 05, 2015, 02:38:12 pm »
Hi all, hope you're all well.

I am looking at setting up an email account with Gmail on LinuxMCE, but not having much luck in that I don't receive the test email. I have attached my settings. I have tried manual setup as well. As you can see the "Response:" from sending a test message is blank.

From the wiki this looks straightforward, and is known to be working in 1004 (I will get round to upgrading at some point...). Any pointers would be much appreciated!

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3674
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Wizard -> Email setup - cannot make it work
« Reply #1 on: July 05, 2015, 04:00:23 pm »
My money would be on Google doing something 'intelligent' which screws you.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3674
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Wizard -> Email setup - cannot make it work
« Reply #2 on: July 05, 2015, 04:27:25 pm »
Just checked, and it doesn't seem to be gmail related. See if a ticket exists, and if not, open one up.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3674
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Wizard -> Email setup - cannot make it work
« Reply #3 on: July 05, 2015, 09:36:06 pm »
I've checked out how things were setup, and (probably) fixed a couple of things.

If you want to testdrive the changes, please just replace all calls to postmap with /usr/sbin/postmap in file /usr/pluto/bin/Configure_Postfix_interactive.sh

There will be a new boot scripts package for 1204.

golgoj4

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1193
  • hrumpf!
    • View Profile
    • Mah Website
Re: Wizard -> Email setup - cannot make it work
« Reply #4 on: July 05, 2015, 10:55:22 pm »
nothing like working in opposite directions.
Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3674
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Wizard -> Email setup - cannot make it work
« Reply #5 on: July 06, 2015, 06:06:28 am »
Well, I would providing a quick fix not working in opposite directions. But maybe I am just misunderstanding.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3674
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Wizard -> Email setup - cannot make it work
« Reply #6 on: July 06, 2015, 03:34:56 pm »
I've backported the patch. A new lucid pluto-boot-scripts package is available which should fix your issues. Please report back.

purps

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1402
  • If it ain't broke, tweak it
    • View Profile
Re: Wizard -> Email setup - cannot make it work
« Reply #7 on: July 06, 2015, 08:01:45 pm »
Thank you so much for the reply.

Unfortunately the fix does not appear to work.

My Configure_Postfix_interactive.sh http://pastebin.com/a5y5HtmS

(I changed 3 "postmap"s to "/usr/sbin/postmap" in total).

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3674
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Wizard -> Email setup - cannot make it work
« Reply #8 on: July 06, 2015, 09:57:10 pm »
did you also apt-get upgrade, to get my version into your system. It is quite feasible that other fixes have happened in the past.

purps

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1402
  • If it ain't broke, tweak it
    • View Profile
Re: Wizard -> Email setup - cannot make it work
« Reply #9 on: July 07, 2015, 09:26:24 pm »
I did not - the last upgrade I did is as indicated in my signature. I will do an image back up, have a go at an upgrade, and get back to you.

Thanks again for your time.

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3674
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Wizard -> Email setup - cannot make it work
« Reply #10 on: July 07, 2015, 10:23:33 pm »
You are an intelligent man :)

No upgrade without a backup!

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3674
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Wizard -> Email setup - cannot make it work
« Reply #11 on: July 09, 2015, 06:51:03 am »
There is another change to pluto-boot-script - and a backport to 1004.

apt-get update and apt-get upgrade will bring the latest email fixes.

However, GMail poses a slight problem. You have to login to GMail and allow less secure connections to happen. Look at /var/log/mail.log for a URL to click to do just that.

rebelkiller

  • Veteran
  • ***
  • Posts: 77
    • View Profile
Re: Wizard -> Email setup - cannot make it work
« Reply #12 on: July 23, 2015, 06:49:21 am »
I've got it working, but I had to configure some conf-file manually (some google searching helped me). Configuring email only in webadmin does not work (for me).

The right place to start is /etc/postfix.

You should check main.cf (relayhost, tls-settings, certificates,network protocol) sasl_passwd and transport.

After configuring sasl_passw and transport you have to do a postmap (one for sasl_passwd and one for transport.

At last postfix restart (not reload) and things are working.

Now you can use general info plugin to send emails.

If it is not working check /var/log/mail.log.


Cheers,
bernd

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3674
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Wizard -> Email setup - cannot make it work
« Reply #13 on: July 23, 2015, 12:42:20 pm »
rebelkiller,

saying "not working" isn't helpful for others.

It would be very helpful, if you could for example provide details about your provider, a diff from the configuration files that the email setup created and that you created. That way we can fix stuff. Otherwise, the next person will be in the same boat. Not helpful.

Thanks.

rebelkiller

  • Veteran
  • ***
  • Posts: 77
    • View Profile
Re: Wizard -> Email setup - cannot make it work
« Reply #14 on: July 23, 2015, 07:09:59 pm »
I reconfigured my conf files already so I cannot make a diff. I do not know exactly what was messed up anymore. It was a bunch of things that were wrong.

Let me recover some things:

- None of my settings from web admin ("email setup") could be found in /etc/postfix conf files. Nothing.

for example (I'm using googlemail):
- transport contained "[]:" instead of "[smtp.gmail.com]:587"
- sasl_passwd did not contain a user name or password. "[smtp.gmail.com]:587" was missing, too.
- in main.cf there was no correct "relayhost" (again "[]:" instead of "[smtp.gmail.com]:587")
- several security related settings in main.cf were wrong (TLS, certificates etc.)

I think web admin is not talking to config files at all....


@posde:
I'm not a developer, I'm just trying to give some hints to solve problems someone has ("quick fix"). Please do not tell me, that hints do not help. If my hints are not helpful I will stop sharing my experiences in this forum.
« Last Edit: July 23, 2015, 07:32:40 pm by rebelkiller »