Author Topic: [Zarafa WebAccess] Sending with your alias email  (Read 12530 times)

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
[Zarafa WebAccess] Sending with your alias email
« on: February 20, 2011, 04:58:08 pm »
Hello,
I faced a problem few weeks ago.  I wasn't able to send out using an alias email with the Zarafa WebAccess.

I finally found out that it was a default spooler configuration that was blocking everything.

This is how I worked around my problem.

In a terminal as root user
Zentyal 2.0
Code: (terminal) [Select]
# cd / && find . -name 'spooler.cf*' | xargs perl -pi -e 's/always_send_delegates = no/always_send_delegates = yes/g' && find . -name 'spooler.cf*' | xargs perl -pi -e 's/allow_redirect_spoofing = no/allow_redirect_spoofing =  yes/g' && mkdir -p /etc/ebox/stubs/zarafa && cp /usr/share/ebox/stubs/zarafa/spooler.cfg.mas /etc/ebox/stubs/zarafa/spooler.cfg.mas && zarafa-spooler restart
Zentyal 2.2
Code: (terminal) [Select]
# cd / && find . -name 'spooler.cf*' | xargs perl -pi -e 's/always_send_delegates = no/always_send_delegates = yes/g' && find . -name 'spooler.cf*' | xargs perl -pi -e 's/allow_redirect_spoofing = no/allow_redirect_spoofing =  yes/g' && mkdir -p /etc/zentyal/stubs/zarafa && cp /usr/share/zentyal/stubs/zarafa/spooler.cfg.mas /etc/zentyal/stubs/zarafa/spooler.cfg.mas && zarafa-spooler restart
Zentyal 3.0
Code: (terminal) [Select]
# sudo sed -i 's/zarafa_always_send_delegates = no/zarafa_always_send_delegates = yes/g' /etc/zentyal/zarafa.conf && sudo /etc/init.d/zentyal zarafa restart
Explaining this command (Zentyal 2.x series)
It will look for 2 files on the server:
1) /etc/zarafa/spooler.cfg
2) /usr/share/ebox|zentyal/stubs/zarafa/spooler.cfg.mas

Then, it will change the lines
Code: [Select]
always_send_delegates = no
allow_redirect_spoofing = no
for
Code: [Select]
always_send_delegates = yes
allow_redirect_spoofing = yes

And at last, it will restart the Zarafa spooler service.


We are not done yet.  We now have to add our emails to the account.

Go to Webaccess >> Settings >> Compose mail >> From Email Addresses >> Add your alias


Having all that said, it would be great to have a simple checkbox under:

Zentyal >> Groupware >> General configuration settings

to enable/disable it.

Best,

Marcus
« Last Edit: December 12, 2012, 04:53:13 pm by Marcus »

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #1 on: February 21, 2011, 01:00:15 am »
This feature can be set up now via a configuration file in /etc/ebox/*zarafa.conf and will be released soon.

ricvee

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #2 on: April 13, 2011, 09:39:58 pm »
Hi Marcus,

Thanks for the manual!
This almost does the trick for me, but not totally.
I want to send as the alias mail-address always(it is an external address), and I don't want to select the From field all the time.

Does anyone know how to do this?

ricvee
« Last Edit: April 14, 2011, 03:48:14 pm by ricvee »

ballapd

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #3 on: June 05, 2012, 12:39:40 pm »
This feature can be set up now via a configuration file in /etc/ebox/*zarafa.conf and will be released soon.

Hello jsalamero,

this patch was released? Because the /etc/ebox/ not exist.
Or any other method?

Thank you,


 
« Last Edit: June 05, 2012, 12:45:23 pm by ballapd »

robb

  • Guest
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #4 on: June 05, 2012, 06:15:57 pm »
This is from the Zentyal 2.0 period, before the namechange of several directories from ebox to zental

Try to look in /etc/zentyal/zarafa.conf
Then you will notice this has been fixed.
personally I CAN send with alias. You do have to add the aliasses you want to send with!
To do so log into zarafa webaccess
go to settings
select compose mail tab (second tab)
There you can add aliasses by clicking the + sign in the "from emailaddresses" section.

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #5 on: June 05, 2012, 06:23:09 pm »
Hello ballapd,

**Edit**
The first post is now up to date

Assuming that you are using the latest Zentyal (Zentyal 2.2)

You may create the folder using this command line:
Code: [Select]
mkdir -p /etc/zentyal/stubs/zarafa
Then you'll have to copy the "mas" file to the newly created folder using this command line:
Code: [Select]
cp /usr/share/zentyal/stubs/zarafa/spooler.cfg.mas /etc/zentyal/stubs/zarafa/spooler.cfg.mas
Best,

Marcus

robb

  • Guest
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #6 on: June 05, 2012, 08:29:16 pm »
This works by default (without editing the .mas files) for me.

However, it would be nice if all aliases were added as 'sent as' automaticly instead of having to add every alias by hand.

ballapd

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #7 on: June 05, 2012, 10:05:31 pm »
Hello Robb,

I can't send as other alias user.
On the Zentyal web interface "Office/User/Create mail aliases" I've set up a mail alias, and on "Zarafa/Settings/Compose mail" set up the "From Email Addresses"  the "info@..." but cannot send.
The error is: "You are not allowed to send as user or group info"

The receiving is OK.

Thank you,
« Last Edit: June 05, 2012, 10:07:50 pm by ballapd »

ballapd

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #8 on: June 05, 2012, 10:17:24 pm »
Hello ballapd,

**Edit**
The first post is now up to date

Assuming that you are using the latest Zentyal (Zentyal 2.2)

You may create the folder using this command line:
Code: [Select]
mkdir -p /etc/zentyal/stubs/zarafa
Then you'll have to copy the "mas" file to the newly created folder using this command line:
Code: [Select]
cp /usr/share/zentyal/stubs/zarafa/spooler.cfg.mas /etc/zentyal/stubs/zarafa/spooler.cfg.mas
Best,

Marcus
Hello Marcus,

than you the description and your quick reply. 
I'm willing to give the easisest way, if not possible then I'll go to the CLI.

Thank you,



Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #9 on: December 12, 2012, 04:54:19 pm »
Hello everyone,

The first post got updated for the Zentyal 3.0 version.

Best,

Marcus

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #10 on: December 25, 2012, 09:12:37 am »
Hi Marcus,

still I dont understand why you need to change the stub when you have on /etc/zentyal/zarafa.conf:

# allow users send mail from other address different than their: no | yes
zarafa_always_send_delegates = no

Regards,

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #11 on: December 25, 2012, 06:22:02 pm »
Hello jsalamero,

­> why you need to change the stub
This was true for previous version (2.x series).

> when you have on /etc/zentyal/zarafa.conf
You'll notice that the Zentyal v3.0 instruction is exactly what you just wrote...

Best,

Marcus

fatbob

  • Zen Warrior
  • ***
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #12 on: February 15, 2013, 10:31:48 pm »
Hi

Have Zentyl community eddition 3.

Have changed the option zarafa_always_send_delegates to yes in /etc/zentyal.conf

Have created aliases under create mail aliases in the user config

Still f*kin zarafa won't let me send as an alias. No error at all. If I change the from address it just ignores it.

Any ideas.?




fatbob

  • Zen Warrior
  • ***
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: [Zarafa WebAccess] Sending with your alias email
« Reply #13 on: February 16, 2013, 02:05:08 am »
Just created a group for each email address and added the users into the group. This worked fine :)