Noob user confirmation email question
  • Hi I've been developing a website for the first time using newscoop. Apart from a handful of very simple cover pages, I'm learning CSS and HTML alongside newscoop while I'm at it.

    I have a question regarding user registration and the confirmation email.
    I have successfully installed a satellite postfix installation on the newscoop host server, and have it performing authenticated relay through my exchange server :

    Mar 10 15:48:40 newscoop2 postfix/pickup[1012]: C3CF012024F: uid=33 from=<www-data>
    Mar 10 15:48:40 newscoop2 postfix/cleanup[1428]: C3CF012024F: message-id=<20130310054840.C3CF012024F@newscoop2.mydomain.local>
    Mar 10 15:48:40 newscoop2 postfix/qmgr[1014]: C3CF012024F: from=<www-data@mydomain.com>, size=707, nrcpt=1 (queue active)
    Mar 10 15:48:41 newscoop2 postfix/smtp[1430]: C3CF012024F: to=<someone@somewhere.com>, relay=exchange.mydomain.local[concealed-IP]:587, delay=0.71, delays=0.08/0.28/0.15/0.21, dsn=2.6.0, status=sent (250 2.6.0 <20130310054840.C3CF012024F@newscoop2.mydomain.local> Queued mail for delivery)
    Mar 10 15:48:41 newscoop2 postfix/qmgr[1014]: C3CF012024F: removed

    I then used the /etc/php5/apache2/php.ini option mail.force_extra_parameters = -fwebmaster@mydomain.com

    Mar 10 15:50:43 newscoop2 postfix/pickup[1012]: 8738412024F: uid=33 from=<webmaster@mydomain.com>
    Mar 10 15:50:43 newscoop2 postfix/cleanup[1525]: 8738412024F: message-id=<20130310055043.8738412024F@newscoop2.mydomain.local>
    Mar 10 15:50:43 newscoop2 postfix/qmgr[1014]: 8738412024F: from=<webmaster@mydomain.com>, size=707, nrcpt=1 (queue active)
    Mar 10 15:50:44 newscoop2 postfix/smtp[1527]: 8738412024F: to=<someone@somewhere.com>, relay=exchange.mydomain.local[concealed-IP]:587, delay=0.5, delays=0.04/0.02/0.21/0.23, dsn=2.6.0, status=sent (250 2.6.0 <20130310055043.8738412024F@newscoop2.mydomain.local> Queued mail for delivery)
    Mar 10 15:50:44 newscoop2 postfix/qmgr[1014]: 8738412024F: removed

    When the mail arrives at the recipients mailbox, it appears to have come from no-reply@domain.com
    Which strikes me as a probable problem for spam detection, and confirmation emails likely to go to junk mail.

    My newscoop system preferences lists the from email address as webmaster@mydomain.com

    Why doesn't the confirmation email have webmaster@mydomain.com as the sender address, and how can I correct this behaviour?

    Regards

    James
  • 5 Comments sorted by
  • Hosted on ubuntu server 10.04.4 LTS x64
  • Newscoop version = 4.10-1
    Hacking at/with the Rockstar theme.
  • Can you use a newest Ubuntu? I tested on Ubuntu 12.04 with Newscoop 4.1.0 and all was OK for me.
  • Hi James,

    You are right, Newscoop is not making use of that setting in System Preferences (as it should). Rather the setting is done via the application/config/application-ini.dist configuration file.

    However, please do not edit directly that file. You should create application/config/application-ini and add the following lines:

    [production]
    email.from = "no-reply@domain.com"
    email.contact = "info@domain.com"

    [development]
    email.from = "no-reply@domain.com"
    email.contact = "info@domain.com"

    and set the addresses to your pleasure, after saving Newscoop will use those.

    Hope this helps.


    All Best,
  • Thanks - working now...

    application/config/application.ini:

    [production]
    email.from = "no-reply@domain.com"
    email.contact = "info@domain.com"

    [development]
    email.from = "no-reply@domain.com"
    email.contact = "info@domain.com"