LinuxMCE Forums

General => Users => Topic started by: purps on July 05, 2015, 02:38:12 pm

Title: Wizard -> Email setup - cannot make it work
Post by: purps 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O on July 05, 2015, 04:00:23 pm
My money would be on Google doing something 'intelligent' which screws you.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: golgoj4 on July 05, 2015, 10:55:22 pm
nothing like working in opposite directions.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: purps 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: purps 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O on July 07, 2015, 10:23:33 pm
You are an intelligent man :)

No upgrade without a backup!
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: rebelkiller 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
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: rebelkiller 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.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O on July 24, 2015, 08:52:14 am
bernd,

sorry if I can across obnoxiously. It is one of my not so nice traits.

If you are on the latest packages, make a backup of your postfix directory, fill out the blanks on the mail configuration page, and see, if stuff ends up in the postfix directory. If it does, diff it to the stuff you created manually, so we can see the difference. If no files end up in the postfix configuration directory, I'd like to get the output of
Code: [Select]
dpkg -l pluto-website-admin
Thanks.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: rebelkiller on July 29, 2015, 10:07:35 pm
Don' mind.  ;)

My postfix is running fine. I did not manage to let it fail again in resetting postfix directory. Now when I fill out the blanks on web admin "main.cf" etc. are created successfully.

BUT:
If postfix service is not running web admin fails to send test email. Config files have been created. A simple postfix start (or restart) command after "Update" is pressed should help.

I think this was the main problem for me. My postfix was not running because of misconfiguration (I cannot recover exactly what was wrong) and so web admin failed to send test email.
Title: Re: Wizard -> Email setup - cannot make it work
Post by: Marie.O on July 30, 2015, 12:03:23 am
Thanks for the feedback.

Does it work if you have non running/working postfix and just click Update without using Test mail?