Showing posts with label Mail setup. Show all posts
Showing posts with label Mail setup. Show all posts

Sunday, November 29, 2009

Using POPtray to check your Axigen Mail

To check your Axigen mail using POPtray you need to tick the following
box in Axigen Console: Services: POP3
On UNSECURED connections allow authentication with:
Normal login (unsecured)
( Otherwise you get "Invalid Authentication Type" message  within POPtray when you check your account)



Saturday, August 29, 2009

Using Axigen Command Line Interface

After the use of the axigen-cfg-wizard to setup a domain
I noticed the following after installing the license key and restart of Axigen.

I could not access my mail using webmail or use the GUI
I found the answer in the knowledgebase of Axigen.
After installation of the license belonging to the free version you may only have one domain. I remembered that I had left the original also in the config so I had 2 domains which is not allowed. Therefore no domain was present.

And here comes the CLI to the rescue:

To start the CLI: telnet 127.0.0.1 7000
root@opensolaris:/var/opt/axigen/webadmin# telnet 127.0.0.1 7000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Welcome to AXIGEN's Command Line Interface
You must login first. For a list of available commands, type HELP
user admin
xxxxx
For a list of available commands, type HELP
+OK: Authentication successful
<#> help
-------------------------------------
The commands available for the Initial context are:
EXIT/QUIT - exits CLI and closes connection to AXIGEN
HELP - prints this help message

LIST Domains [wildcard (ex: domain*)] - lists the domains of this server
LIST domainActivationRequests - lists the requests made for domain registration

CLEAR domainActivationRequests - clear the list of requests not pending

SAVE CONFIG [] - saves the server's running configuration (a suffix will be added)

CONFIG SERVER - enters the Server context

SET admin-password - sets the admin password (max. 32 chars) (OBSOLETE - kept for backward compatibility)

CHANGE password oldPassword newPassword - changes your password (max. 32 chars)

ENTER QUEUE - enters the Queue context
ENTER AACL - enters the Administrative ACL context

CREATE Domain name domainLocation postmasterPassword - creates a domain (changes context)
CREATE Subdomain prefix parentDomain postmasterPassword - creates a subdomain (changes context)
REGISTER Domain domainLocation - registers a domain to the server (changes context)
UNREGISTER Domain name - unregisters a domain from the server

UPDATE Domain name - updates a domain from the server (changes context)
SHOW Domain name [ATTR ] - shows the given domain
-------------------------------------
<#> list domains
The list of domains for the server:
+OK: command successful
<#> create domain name solsan domainlocation /var/opt/axigen/domains/solsan postmasterpassword xxxxx
+OK: command successful
commit
committing changes and switching back to previous context.
This operation might take some time. Please wait....
+OK: command successful

<#> list domains
The list of domains for the server:

name Total Used
------------------------------------------------------------
solsan 20Kb 20Kb

+OK: command successful
<#> help
-------------------------------------
<#> exit
WARNING: all changes made and not committed are lost
connection to AXIGEN closing.
+OK: have a nice day
Connection to 127.0.0.1 closed by foreign host.
root@opensolaris:/var/opt/axigen/webadmin# /etc/init.d/axigen restart
Stopping AXIGEN Mail Server... DONE
Starting AXIGEN Mail Server... DONE
root@opensolaris:/var/opt/axigen/webadmin# /etc/init.d/axigen reload
Reloading AXIGEN configuration... DONE
root@opensolaris:/var/opt/axigen/webadmin# /etc/init.d/axigen restart
Stopping AXIGEN Mail Server... DONE
Starting AXIGEN Mail Server... DONE
root@opensolaris:/var/opt/axigen/webadmin#

Mail from command prompt using Axigen

http://www.axigen.com/kb/show/35

# ln -sf /opt/axigen/bin/sendmail /usr/lib/sendmail
# chown axigen:axigen sendmail
# chmod 6750 sendmail

Note: The chown command will reset the SUID and GUID bits, so you need to issue it before the chmod command.
At the end, in order for any user to be able to send e-mails using the command line sendmail wrapper, you need to insert the respective user in the axigen group.
In my case I added unix user "admin" to axigen and tested to see if I received any mail in axigen

To test:
echo "Coming home for dinner" | mail admin
mailx -s "Axigen conf file" admin < axigen.cfg

Additional some locations:
/var/opt/axigen/run/axigen.cfg
webmail http://10.0.0.4:8000 / 10.0.0.4 for Axigen 7.2
webadmin: http://10.0.0.4:9000

CLI: telnet 10.0.0.4 7000

Axigen Mail on OpenSolaris

In order to receive alerts from my NAS I decided to use Free Axigen Office Edition (Standard)
By setting up email on my NAS I only need a pop-email notifier on my DAW to see if there are alerts. I use poppeeper for this

Axigen provides the whole package including POP3 in a modern interface and easy installation. Officially Axigen is not supported on OpenSolaris but it turned out fine.

Downloaded latest version for Solaris

First removed sendmail because I will use the sendmail functionality from Axigen:
OpenSolaris: pkg uninstall SUNWsndm

Execute as root ./axigen-7.1.4.i386.solaris.run

Then the wizard needs to be launched by issuing one of the following commands, on Solaris and all Linux platforms:

/opt/axigen/bin/axigen-cfg-wizard

This Wizard is using xterm and that was causing some problems:

I tried with VNC;
started vncserver as root and used vncviewer on windows 10.0.0.4:5901
although xclock was working as root i could not start axigen-cfg-wizard.

In google I found: install the following package: ncurses
After that was done I could start the wizard.

=========

If you don't want to use VNC; Axigen provides the following solution for this problem:
Error opening terminal when running axigen-cfg-wizard on Solaris
Quick Link: http://www.axigen.com/kb/show/56
Article updated on 26 January, 2007

Description
Running axigen-cfg-wizard on Solaris returns "Error opening terminal"

Resolution
Because of the non-default path of the terminfo terminal definitions in Solaris, the axigen-cfg-wizard application returns:

Error opening terminal. This can easily be solved by setting the TERMINFO environment variable to the correct terminfo

path:

TERMINFO="/usr/share/lib/terminfo"
export TERMINFO

STEPS:
Logon to your Solaris box
Open a terminal window as admin (standard user created during install of openSolaris) and open xterm session as root with:
pfexec xterm

In this window at the prompt type:
TERMINFO="/usr/share/lib/terminfo"
export TERMINFO

now you can start the wizard
/opt/axigen/bin/axigen-cfg-wizard

I configured everything according standard.
(you can easily change it later using the GUI)