You are not logged in.

#1 2014-01-31 03:22:07

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Self Hosted Email server

hey all

Was intereste in hosting my own email server

not finding the right place to look

is there a wiki on arch wiki anyone can point me to? ill keep looking but if someone has done this and could point a finger in a direction id be grateful

thnx

Last edited by VanillaFunk (2014-03-04 10:27:30)


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#3 2014-02-01 04:13:53

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Self Hosted Email server

thanks so much


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#4 2014-02-02 07:06:59

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Self Hosted Email server

so finally had some time to get into this and followed the virtual mail server arch wiki
https://www.google.com.au/search?q=site … ail+server
from here

the server seems to be up fine and operating however i cannot find postfixadmin setup and its not in the local host... does this mean i have to unistall packages or should there be a way to fix it without clearing it all out

im not sure what files i should post as this is the first time ive taken on such a project i appreciate any help and maybe it would be best to move this to newbie area as this is no longer just a where to find answers

-- edit --

the mariadb daemmon starts as well as phpworking from the test file

i mya just be doing something silly and not sure how to open postfixadmin

having the same issue with phpmyadmin

perhaphs im looking in the wrong place for it

managed to get phpmyadmin to load...

im assuming that it may have something to do with the mysql default on the wiki where as it needs to use mariadb to run postfixadmin

still not sure. if i figure this out ill mark as solved

Last edited by VanillaFunk (2014-02-02 08:36:45)


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#5 2014-02-02 17:10:25

Stebalien
Member
Registered: 2010-04-27
Posts: 1,218
Website

Re: Self Hosted Email server

Please write in full, complete, thought-through paragraphs. Also, if something isn't working, you say more than "it doesn't work". For example, did you even install postfixadmin?

Regardless, when you think you have a working setup, check to make sure you aren't running an open relay. Correctly setting up and securing a mail server is non-trivial.

Last edited by Stebalien (2014-02-02 17:11:04)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#6 2014-02-02 19:13:29

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Self Hosted Email server

alright sorry about the scattered thought...
as this is the first time ive done this, i may give you the wrong information but here is an attempt.
the mariadb starts on boot in systemd
postfixadmin was installed with sudo pacman -S postfixadmin

this is the code i appended to the bottom of /etc/postfix/main.cf

relay_domains = 
virtual_alias_maps = proxy:mysql:/etc/postfix/virtual_alias_maps.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/virtual_mailbox_maps.cf
virtual_mailbox_base = /home/vmail
virtual_mailbox_limit = 512000000
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
local_transport = virtual
local_recipient_maps = $virtual_mailbox_maps
transport_maps = hash:/etc/postfix/transport

smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_relay_restrtictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destiantion
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/private/server.crt
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_sasl_local_domain = $mydomain
broken_sasl_auth_clients = yes
smtpd_tls_loglevel = 1

im not sure if that has anything to do with it.
i am able to get phpmyadmin to run and postfix_db is empty when i view phpmyadmin after running

postmap /etc/postfix/transport

so my first thought is perhaps i misunderstood the wiki on this step


when i open http://localhost/postfixAdmin/setup.php i get a respone of

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

from my browser



-- edit --

following the open relay link i see the smtp server failed to connect.  so it is the mail server not running.  i will go back over postfix and dovecot setups to see if i can find where i went wrong

Last edited by VanillaFunk (2014-02-02 21:02:08)


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#7 2014-02-03 19:56:37

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Self Hosted Email server

rather than post a new thread relating to my issue with postfix i do have some questions so ill just post them here

for one i as mentioned i installed postfix from the official repositories

however the setup page on

http://localhost/postfixAdmin/setup.php

does not load as mentioned above

i did download postfixadmin from sourceforge and seems fine which lead me to investigate the postfix admin install from repositories

do i have to copy files from somehwere in that installation to my localhost? or perhaps i need to include a file in httpd.conf?

i have looked around for some of these answers and not found anything related

any help on that would be great

furthermore

do i need to build tables in my postfix database by hand?  if so i will focus more on making the official repository install work properly first however from running postfix admin from the sourceforge download it seems they need to be set up first

the link i followed as a set up guide is poste above but i  will link it again anyway


https://www.google.com.au/search?q=site … ail+server

other than that the process seems to be fine i have set up my domain name and website / forums without trouble so i do know the mysql install and apahce server are working properly
thanks in advance and cheers


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#8 2014-02-03 20:40:22

teekay
Member
Registered: 2011-10-26
Posts: 269

Re: Self Hosted Email server

Postfixadmin will create the DB tables. But you need to configure it before you can use it.
See e.g. https://kuther.net/howtos/soho-mailserv … stfixadmin - it uses the AUR package.

Offline

#9 2014-02-03 22:59:54

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Self Hosted Email server

omy question it seems is easy....

i found

Alias /postfixAdmin "/usr/share/webapps/postfixAdmin"
<Directory "/usr/share/webapps/postfixAdmin">
      AllowOverride All
      Options FollowSymlinks
      Order allow,deny
      Allow from all
</Directory>

and that may be the reference missing that directs me to the page... however i am not sure from that site listed by teekay were to put that piece of code i tried it in

/etc/httpd/conf/extra/httpd-vhosts.conf

and restarting httpd with no result


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#10 2014-02-05 07:40:42

teekay
Member
Registered: 2011-10-26
Posts: 269

Re: Self Hosted Email server

Configuring Apache is a bit out of the scope of this thread, but anyways it should be as easy as

cd /etc/httpd/conf/extra
ln -s /etc/webapps/postfixadmin/apache.example.conf httpd-postfixadmin.conf

Then edit /etc/httpd/conf/httpd.conf and append

Include "conf/extra/httpd-postfixadmin.conf"

Then restart Apache and head to http://localhost/postfixAdmin/setup.php (mind that upper case A in there).

Offline

#11 2014-02-05 21:13:24

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Self Hosted Email server

thanks so much for the help guys... it seems the server is up running and a mailbox created now all i need to do is get it to wrk via imap so cheers all for the help


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#12 2014-03-04 10:26:20

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Self Hosted Email server

--edit --

I have set up a email server with dovecot and postfix

After completion of the setup.. I can telnet localhost smtp and connect however telnet localhost pop3 or imap do not connect.  I have also noticed from my email client that i am unable to send emails... not sure what some one helping may want to know so i will post a few things.

postfixadmin had created the mailbox for the user  lets just call it user@place.com


the sql database shows the user  domain 

domain            description   aliases     mailboxes   maxquota  quota   transport
 place.com  private email       10             10                 10           0          virtual

I assume i have an issue with dovecot? but again not sure what to post

I have forwarded the ports 25 , 143, and 80  and checked dovecot again this morning.  which is the same as written in the wiki page,  gonna look over a few things and see if i can find any else related.  Though most of my findings as to setup were not arch related.


sorry for the lack of info

output from mtoolbox.com check

Connecting to xxx.xxx.xxx.xxx  << blacked out ip

220-darkstar.home ESMTP Postfix
220 darkstar.home ESMTP Postfix [6692 ms]
EHLO MXTB-PWS3.mxtoolbox.com

SendSMTPCommand: You hung up on us after we connected. Please whitelist us. (connection lost)

MXTB-PWS3v2 7457ms

output from my email client when sending

* Account 'private': Connecting to SMTP server: darkstar.home:25...
[12:15:03] SMTP< 220-darkstar.home ESMTP Postfix
[12:15:09] SMTP< 220 darkstar.home ESMTP Postfix
[12:15:09] ESMTP> EHLO darkstar.home
[12:15:09] ESMTP< 421 4.3.2 No system resources
** error occurred on SMTP session
*** Error occurred while sending the message:
421 4.3.2 No system resources
[12:15:09] IMAP4> 43 UID STORE 1581 +FLAGS.SILENT (\Deleted) 
[12:15:09] IMAP4< 43 OK UID STORE completed 
[12:15:09] IMAP4> 44 EXPUNGE 
[12:15:10] IMAP4< * 1 EXPUNGE 
[12:15:10] IMAP4< * 0 EXISTS 
[12:15:10] IMAP4< 44 OK EXPUNGE completed 
[12:15:10] IMAP4- [fetching UIDs...]
[12:15:10] IMAP4> 45 UID FETCH 1:* (UID) 
[12:15:12] IMAP4< 45 OK UID FETCH completed 

edited post this morning as it sounded a lot more complete at 530 am go figure.

Last edited by VanillaFunk (2014-03-04 19:01:03)


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#13 2014-03-04 18:11:21

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Self Hosted Email server

i  cheked again in roundcube mail after setting the proper domain name and not the dns lookup but the result of

hostname -f

little progress but at least now I have made at least some

Last edited by VanillaFunk (2014-03-04 18:11:45)


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

#14 2014-03-06 02:20:04

VanillaFunk
Member
From: MA. USA
Registered: 2013-06-10
Posts: 396
Website

Re: Self Hosted Email server

so i found some material and it used ps -A | grep dovecot to test if this was working.

ps -A | grep dovecot
ps -A | grep postfix

both return noting... so it seems the problem lies in my configs

for what ever reason they are not starting.

I will post again when i find something anything


archx86_64 : awesomewm
https://github.com/dreemsoul

Remeber to feed the squirrels

Offline

Board footer

Powered by FluxBB