You Are here: Home News Scripts HELP: MailStation Plus v0.2

22 -February -2012
Register

REGISTER

*
*
*
*
*
Fields marked with an asterisk (*) are required.
HELP: MailStation Plus v0.2 PDF Print E-mail
News - Scripting
Written by Mark Veenstra   
Monday, 19 September 2011 18:03
Installation

There are two possibilities to install MailStation Plus. First one is the easiest way but requires DSM 3.2 or higher. Second one is manually installation for older DSM versions.

Method 1 (Easy as hell):

Log into your DSM and open 'Package Management'. Go to settings and add the following package source: http://update.10trum.de/packageupdate/getpackages.php. Once you have added this source you can install MailStation Plus through the Package Management of DSM. You will also be notified of any package updates!

Method 2 (Manual install):

First of all you need to download the package from my website. You can find MailStation Plus here:

Once you downloaded the file, log into your Synolgy DSM, by entering http://<ip_of_your_nas>:5000 into a browser. Make sure to log into DSM with the admin account. When you you are logged into DSM, open the 'Package Center'. From here you can click on 'Install'. In the screen that pops up, you can select the downloaded SPK file. So please select the MailStation Plus SPK file here and click 'Next'.

Now you can also decide to run the package after installation. Click this option and go on. Once the package is installed, you notice that DSM says it is stopped. This is OK, because the package doesn't run as a daemon. So no worries here, you are ready to go and use MailStation Plus.

ATTENTION!!! If the package doesn't do anything if you click it, please read this article: Howto fix broken 3rd party applications in DSM 3.2

Screenshots

menu-item
menu-item menu-item
overview-aliase...
overview-aliases overview-aliases
create-aliases
create-aliases create-aliases
modify-aliases
modify-aliases modify-aliases
multiple-domain...
multiple-domains multiple-domains

Logfiles

Logfiles of MailStation Plus can be found within the 'Package Center'. If you open 'Package Center' you can click on 'more' in the MailStation Plus field. Once clicked you can click on the tab 'Logfile'. If you ever encounter problems you can also send me the logfile. It is located at /usr/syno/synoman/webman/3rdparty/mailstationplus/log/mailstationplus.log.

Creating/Editing mail aliases

Simply open 'MailStation Plus'. By default the mail aliases configuration is shown. You can click on the table header 'Alias' to sort ascending or descending on the alias field. First time you open this screen, you will notice that the buttons 'Modify' and 'Delete' are disabled. These buttons will enable as soon as you click on a row in the table. After selecting a row and clicking the modify or delete button, this selected row can be edited or deleted from the aliases database. To create a complete new alias, you can click on 'Create'.

Please keep to following in notice as MailStation Plus is NOT checking your input (yet):

  • Alias: Enter a virtual alias name that doesn't exists in your user table of DSM. Also you don't have to add the domain you configured into MailStation. Let's say you configured domain markinthedark.nl in MailStation and you want an alias called sales@markinthedark.nl. You can enter 'sales' in the alias field. Please keep in mind that aliased are restricted to characters that are allowed in a email address.
  • Deliver to: In this field there are 3 possibilities. Or you enter a username that is also in your DSM configuration, or you enter a other virtual alias name, or you enter a external email address

Here is a table overview of correct aliases:

Alias Deliver to
sales mark, ben
ben someone@gmail.com
alert someoneelse@gmail.com
everyone mark, ben, someoneelse@gmail.com

So if my configured domain in MailStation is still markinthedark.nl, the above table means:

  • Sending mail to sales@markinthedark.nl will result in a mail to the local user 'mark' (mark@markinthedark.nl) and a mail to the alias user 'ben' (ben@markinthedark.nl).
  • Sending mail to ben@markinthedark.nl will result in a mail to the external email address someone@gmail.com (as you can see the alias before this (sales) will also result in this one.
  • Sending mail to alert@markinthedark.nl will result in a mail to the external email address someoneelse@gmail.com.
  • Sending mail to everyone@markinthedark.nl will result in a mail to mark@markinthedark.nl, ben@markinthedark.nl (which will later result into someone@gmail.com) and someoneelse@gmail.com

This is al I can say about the aliases. If you have any further questions please ask.

Adding multiple domains to MailStation

Ofcourse you also need to open MailStation Plus in order to do this. So please open MailStation Plus. You will see two tabs. One is called 'Domains'. Click on this tab. This will result into a page showing you the domain configured in the official MailStation package. Below that domain you can enter one or more domains for MailStation.

When you don't have any extra domains configured you will only see an empty input field. If you want you can start adding domains with this input field. If you need more then one domain to enter, simply click on the '+' button behind the input field and another input field for a domain is created. Add as much domains as you want. Once finished click on 'Save' and your domains will be added. Configuration of Postfix is also directly reloaded.

If you visit the 'Domains' page again you will see that all the domains are configured. If you want to delete a domain, empty the input field and click 'Save' again.

Configure SMTP relayhost

To be able to relay your email for example through your ISP SMTP server, you can enter the SMTP server of your ISP in the field 'SMTP relayhost'. If your ISP requires authentication you can add the SMTP username and password to the relayhost. The username and password fields are optional. So if NO authentication is required leave these fields empty.

The SMTP relayhost field needs some extra explanation. In some cases just adding the SMTP hostname is not sufficient. This may be because of no correct MX records of that domain. If you encounter any problems with sending mail through your ISP SMTP host, you can add brackets '[]' around the host.

FAQ

Q: Do I need to restart Postfix or my Synology in order to let the changed configurations work?
A: No you don't need to restart Postfix or your Synology. The MailStation Plus package handles this for you.

Q: If I make a mistake in the configuration, will MailStation be broken?
A: Before any changes are made MailStation Plus is making a backup of the current configuration. Once your changes are applied correctly the backup file is removed. If anything fails, MailStation Plus restores the backup file and reloads the configuration.

Q: When I click on MailStation Plus from the DSM menu, nothing happens!
A: Since DSM 3.2-1922 most 3rd party packages won't work anymore. If you right click on the item and then choose 'Open in new window' it will work. But this is not a nice solution ofcourse. Therefore you can solve this bug also by executing 'fix 3rd party packages'.



Share this....
Last Updated on Friday, 28 October 2011 09:42
 

Comments 

 
#14 Bart 2012-01-30 16:43
Hallo Mark,

Even terug komen op het onderwerp Fetchmail en mailstation plus. Heb diverse forums bezocht en ook je antwoorden gelezen. Echter ik denk toch dat er een probleem is met mailstation plus en fetchmail. Zodra ik mailstation plus installeer werkt fetchmail niet meer. Na een gehele deinstallatie van mailstation en mailstation plus, opnieuw opgestart mailstation geinstalleerd en fetchmail werkt weer. zodra ik dan mailstion plus installeer dan stopt fetchmail. Wel heel jammer want het is een geweldige toevoeging op mailstation. Kun jij hier niet nog eens na kijken. Ik heb een 710+ met de laatste software versies (geen beta)

Alsvast bedankt
Quote
 
 
#13 Robert Kraft 2012-01-16 18:02
Thanks for a great application!

It's a pity the relay doesnt work but I managed that the through ssh.

Is it possible to use *@domain.com as a general alias for ?

Thanks
Robert
Quote
 
 
#12 bill.gates 2012-01-04 09:51
This app is alpha software. or even testware. don't expect it to work.
Quote
 
 
#11 Phil 2012-01-04 06:40
I updated MailStation Plus from v0.1 to v0.2 and it's broke.

Similar symptoms to Sean "MailStation Plus did not operate properly (selecting alias, press Modify, didn't bring up the correct record". You can open MailStation Plus, but Add or Modify do nothing.

I've un-installed and re-installed a couple of times, but no luck :(

Any ideas?
Quote
 
 
#10 Sean 2011-12-04 03:02
Mark,
I updated DSM today and answered my original questions. For anyone else:
"root" is another alias that should be defined in the aliases file. The original aliases file installed with DSM contains comments that explain. There is no root alias that gets set up by MailStation Plus because this line is commented out in the original aliases file because it requires user definition before it can work. So today, after updating DSM, I copied the "aliases" file to "aliases.original" so it is available for my future reference. I manually modified aliases, uncommented the root alias definition and assigned it a deliver to address/user.
MailStation Plus did not operate properly (selecting alias, press Modify, didn't bring up the correct record - probably because the alias file wasn't as it expected), I uninstall, reinstalled and it worked again.
Thanks,
Sean
Quote
 
 
#9 FEP 2011-12-04 02:04
I'm also having the same problem as "umit" noted on 11-15-2011. The SMTP relayhost field will not stay configured. After a save the field is cleared. However the SMTP username and SMTP password fields do save correctly.
Quote
 
 
#8 Sean 2011-12-04 00:59
Thanks Mark for MailStation Plus.
I have two questions, installation of the package appears to come with a number of aliases (postmaster, named, nobody, uucp, operator, etc.) configured by default all delivering to "root". There are also two (abuse, MAILER-DAEMON) that are delivered to "postmaster". I tried sending emails to and operator@mydoma in.com and didn't get anything. Where do these end up going?
The second question is your package seems to completedly replace the
/usr/syno/mailstation/etc/aliases
file. Is the original aliases file still available somewhere? That file contained a lot of help information.
Thanks,
Sean
Quote
 
 
#7 Bruno 2011-11-24 20:26
since installation for the package, fetchmail is broken (DSM 3.2 1944). in message.log, i have for each email to grab from pop server::
Suspicious rcfile "/var/packages/MailStation/target/roundcubemail/ext/

How to fix this?
Quote
 
 
#6 eichert chr. 2011-11-19 18:16
Quoting Zet:
Thanks Mark for Mailstation plus, great app. Is it possible to config one alias to two different domains ?




if i send a mail to works fine but if send to it goes still to

Thx for help


for this we would need user support,ldap support or mysql support in postfix, or postfix dont support none of them
Quote
 
 
#5 eichert chr. 2011-11-19 18:00
Quoting umit:
smtp problems
i have ds411 slim with dsm v. 3.2.

user is now the full email adress
Quote