Setting Up Email Server

Support section for FREESCO v0.3.x 3rd Party Packages

Postby BomBtek » Tue Aug 07, 2007 8:14 pm

Hey all,

As another victim of corporate mergers, I have to switch email addys. Embarq, who bought sprint, who had an contract with Earthlink is cancelling my earthlink account in October. So the email addy that I have had since 1998 is going away which sucks! I could pay $40 bucks a year, or I could set my freesco box up along with a dyndns account and hopefully never have to switch again.

I will first upgrade the freesco box, though will have to fight the spiders most likely as the box has not been touched in over a year... Gotta love it...

Anyways, was reading the Howto over at <a href='http://dingetje.homeip.net/dokuwiki/freesco/howtos/how-to_setup_a_mail_server' target='_blank'>dingetje's site</a> and wanted to check and see if any of that info is out dated as of the new release. The addon package site looks old and outdated and I didn't see anything newer than 05 on there. Are the mirrors different? Does anyone have links for the packages (exim, popa3d, etc) that I'll need to get started? I'd normally just search around, but there's not alot of new posts in the new forums and the archived ones didn't seem to be searchable unless I missed something.

Any help is welcomed and appreciated!

-BT
"Initial Success Or Total Failure"
User avatar
BomBtek
Junior Member
 
Posts: 44
Joined: Thu Jun 20, 2002 10:39 am

Postby Lightning » Tue Aug 07, 2007 9:13 pm

At present for new versions I don't recommend FREESCOsoft as the update process is a bit behind. But if you browse through the package release section of the forum you will find the authors links to the latest versions of almost every new package.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GURU !!
 
Posts: 3013
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby BomBtek » Thu Aug 09, 2007 6:17 pm

Thanks Lightning. Didn't even think to check there...

Cheers!

-BT
"Initial Success Or Total Failure"
User avatar
BomBtek
Junior Member
 
Posts: 44
Joined: Thu Jun 20, 2002 10:39 am

Postby Thasaidon » Fri Aug 10, 2007 2:54 am

Setting up an e-mail server is rather easy depending on the way you want to do it.
Most people, like me, use the Exim&Teapop combination.

I'm running both exim_4.20_phbc50 and teapop3x on my Freesco 0.3.3
Where Exim is the actual server and Teapop is the "middleman" to let your mail client get mail from the server.
On top I am running uebimiau_2.7.8a_phbc50 on my webserver (running Apache on the same Freesco machine) so I can check my mail via a webinterface.

These versions are rather old, but they still work fine.
All that needs to be configured is Exim itself. Teapop works "out of the box" and needs no configuring.
And Uebimiau also works "out of the box" as far as I can remember.
Experience shared, is experience gained.

Thasaidon's Freesco Page




Image
User avatar
Thasaidon
Advanced Member
 
Posts: 411
Joined: Tue Feb 05, 2002 9:38 am
Location: The Netherlands

Postby El Machete » Thu Aug 16, 2007 5:07 pm

I have been running my e-mail server in Freesco for years: I also love the exim - teapop combination. I have not updated exim from version 3x neither teapop. Installation and configuration took 10 mins max. Just a note on relying, make sure is disable.

I used to run uebmiau in my freesco server too and other php based webmail utilities. Now, I only use thunderbird to access my mail. Other users of my mail server use outlook and outlook express and have never complained about the server.

Exim and teapop are very reliable and easy to maintain.



cheers
El Machete Main Site<br><a href='http://elmachete.dyndns.org' target='_blank'>http://elmachete.dyndns.org</a><br><br><b><i>Information wants to be free. Use open source</b></i><br><br>Other sites by El Machete:<br><br><a href='http://laoficina.mine.nu/' target='_blank'>El Machete Group Office</a><br>
User avatar
El Machete
Senior Member
 
Posts: 78
Joined: Fri Aug 09, 2002 3:05 am
Location: Alberta Canada

Postby BomBtek » Fri Aug 24, 2007 9:48 pm

I must be missing somthing simple or I have been working on this for too long, but I am stuck. I have exim and popa3d installed, but am unable to send/recive mail through outlook. I followed Phbc50's howto, but obviously am missing somthing.

Here's my outlook settings:

Image

Exim.conf: Items shown are changed, everything else defaulted.

<span style='font-size:8pt;line-height:100%'>
primary_hostname = bt.getmyip.com

domainlist local_domains = localhost : bt.getmyip.com : router.inet

domainlist relay_to_domains = bt.getmyip.com : router.inet

hostlist relay_from_hosts = 127.0.0.1 : 192.168.1.0/16
</span>

Report.txt is attached as well...

TIA^_^
"Initial Success Or Total Failure"
User avatar
BomBtek
Junior Member
 
Posts: 44
Joined: Thu Jun 20, 2002 10:39 am

Postby Thasaidon » Sat Aug 25, 2007 1:44 am

The error message shows Outlook can not connect to the server...
So my guess is that your domain name is not translating into the right ip or not translating at all...

I'm not very experienced with Outlook because I use Thunderbird myself
but try setting Freesco's LAN ip in the server information.
So instead of using your domain bt.getmyip.com use Freesco's IP 192.168.1.1

Also, in the Exim config you have set this:
Code: Select all
hostlist relay_from_hosts = 127.0.0.1 : 192.168.1.0/16

but you network is 192.168.1.0/24, and although it should not matter I so suggest you change that.

--- edit ---
to test if it's a DNS problem, just open a dos box from your client system (the one you are running Outlook on)
then use the following command:
Code: Select all
C:\>telnet 192.168.1.1 25

this should give the following result:
Code: Select all
220 bt.getmyip.com ESMTP Exim 4.20 Sat, 25 Aug 2007 10:22:11 +0000

If it does, just hit [enter] a few times and the connection will drop.
Then do the same but with your domain name
Code: Select all
C:\>telnet bt.get,yip.com 25

If you get the same result... then there should be nothing wrong with Exim and Freesco.
If you get nothing, then your domain is not translated via DNS and I suggest you use Freesco's IP instead of the Domain name in the server settings of Outlook.
Experience shared, is experience gained.

Thasaidon's Freesco Page




Image
User avatar
Thasaidon
Advanced Member
 
Posts: 411
Joined: Tue Feb 05, 2002 9:38 am
Location: The Netherlands

Postby Zedde » Sat Aug 25, 2007 3:27 am

I had some strange problems when I used outlooks account test.
Check you logs see if there any errors there.



Then test a normal e-mail.
"From now until the end of the world,
we and it shall be remembered.
We few, we Band of Brothers.
For he who sheds his blood with me shall be my brother."
User avatar
Zedde
Junior Advanced Member
 
Posts: 157
Joined: Mon May 20, 2002 3:38 pm
Location: Sweden

Postby BomBtek » Sat Aug 25, 2007 8:14 am

Thasaidon,

I changed the /16 to /24 although I don't understand the difference. The telnet tests work fine, so DNS is workign correctly.

My oulook logs this error:


Task '192.168.1.1 - Sending' reported error (0x800CCC65) : 'Your outgoing (SMTP) e-mail server has reported an internal error. If you continue to receive this message, contact your server administrator or Internet service provider (ISP). The server responded: 503 valid RCPT command must precede DATA'


Also another thing which my be unrelated is that in phbc50's how to he refers to the /etc/aliases having this line:
Code: Select all
# root aliase : change the next setting to a valid email user:
root: your_user


Mine did not have that line at all so I just added it. Didn't know if the exim install changed it at all or was supposedto.

A Snip from my Freesco log:

<span style='font-size:8pt;line-height:100%'>Aug 25 07:50:53 - exim[4734]: 2007-08-25 07:50:53 SMTP protocol violation: synchronization error (input sent without waiting for greeting): rejected connection from H=ws001.inet [192.168.1.21] input=""
Aug 25 07:50:53 - exim[4734]: 2007-08-25 07:50:53 SMTP protocol violation: synchronization error (input sent without waiting for greeting): rejected connection from H=ws001.inet [192.168.1.21] input=""
Aug 25 07:50:53 - popa3d[4735]: Authentication failed for UNKNOWN USER
Aug 25 07:50:56 - popa3d[4737]: Session from 192.168.1.21
Aug 25 07:50:56 - popa3d[4737]: Authentication failed for UNKNOWN USER
Aug 25 07:51:03 - popa3d[4741]: Session from 192.168.1.21
Aug 25 07:51:03 - popa3d[4741]: Authentication failed for UNKNOWN USER
Aug 25 07:51:11 - dnsmasq[1516]: query 21.1.168.192.in-addr.arpa from 27.0.0.1
Aug 25 07:51:11 - dnsmasq[1516]: DHCP 192.168.1.21 is ws001.inet
Aug 25 07:51:11 - dnsmasq[1516]: query ws001.inet from 127.0.0.1
Aug 25 07:51:11 - dnsmasq[1516]: DHCP ws001.inet is 192.168.1.21
Aug 25 07:51:11 - exim[4743]: 2007-08-25 07:51:11 SMTP protocol violation: synchronization error (input sent without waiting for greeting): rejected connection from H=ws001.inet [192.168.1.21] input=""
Aug 25 07:51:11 - exim[4743]: 2007-08-25 07:51:11 SMTP protocol violation: synchronization error (input sent without waiting for greeting): rejected connection from H=ws001.inet [192.168.1.21] input=""
Aug 25 07:51:52 - exim[4744]: 2007-08-25 07:51:52 H=ws001.inet (ws001) [192.168.1.21] sender verify fail for <bombtek@bt.getmyip.com>: Unrouteable address
Aug 25 07:51:52 - exim[4744]: 2007-08-25 07:51:52 H=ws001.inet (ws001) [192.168.1.21] sender verify fail for <bombtek@bt.getmyip.com>: Unrouteable address
Aug 25 07:51:52 - exim[4744]: 2007-08-25 07:51:52 H=ws001.inet (ws001) [192.168.1.21] F=<bombtek@bt.getmyip.com> rejected RCPT <bombtek@earthlink.net>: Sender verify failed
Aug 25 07:51:52 - exim[4744]: 2007-08-25 07:51:52 H=ws001.inet (ws001) [192.168.1.21] F=<bombtek@bt.getmyip.com> rejected RCPT <bombtek@earthlink.net>: Sender verify failed
Aug 25 07:52:03 - popa3d[4748]: Session from 192.168.1.21
Aug 25 07:52:03 - popa3d[4748]: Authentication failed for UNKNOWN USER
Aug 25 07:52:05 - popa3d[4750]: Session from 192.168.1.21
Aug 25 07:52:05 - popa3d[4750]: Authentication failed for UNKNOWN USER
Aug 25 07:52:06 - popa3d[4752]: Session from 192.168.1.21
Aug 25 07:52:06 - popa3d[4752]: Authentication failed for UNKNOWN USER
Aug 25 07:52:07 - popa3d[4754]: Session from 192.168.1.21
Aug 25 07:52:07 - popa3d[4754]: Authentication failed for UNKNOWN USER
Aug 25 07:52:08 - popa3d[4756]: Session from 192.168.1.21
Aug 25 07:52:08 - popa3d[4756]: Authentication failed for UNKNOWN USER
Aug 25 07:52:08 - exim[4747]: 2007-08-25 07:52:08 H=ws001.inet (ws001) [192.168.1.21] sender verify fail for <bombtek@bt.getmyip.com>: Unrouteable address
Aug 25 07:52:08 - exim[4747]: 2007-08-25 07:52:08 H=ws001.inet (ws001) [192.168.1.21] sender verify fail for <bombtek@bt.getmyip.com>: Unrouteable address
Aug 25 07:52:08 - exim[4747]: 2007-08-25 07:52:08 H=ws001.inet (ws001) [192.168.1.21] F=<bombtek@bt.getmyip.com> rejected RCPT <bombtek@earthlink.net>: Sender verify failed
Aug 25 07:52:08 - exim[4747]: 2007-08-25 07:52:08 H=ws001.inet (ws001) [192.168.1.21] F=<bombtek@bt.getmyip.com> rejected RCPT <bombtek@earthlink.net>: Sender verify failed
Aug 25 07:52:09 - popa3d[4758]: Session from 192.168.1.21
Aug 25 07:52:09 - popa3d[4758]: Authentication failed for UNKNOWN USER
Aug 25 07:52:09 - popa3d[4760]: Session from 192.168.1.21
Aug 25 07:52:09 - popa3d[4760]: Authentication failed for UNKNOWN USER
Aug 25 07:52:09 - popa3d[4762]: Session from 192.168.1.21
Aug 25 07:52:09 - popa3d[4762]: Authentication failed for UNKNOWN USER
Aug 25 07:52:09 - popa3d[4764]: Session from 192.168.1.21
Aug 25 07:52:09 - popa3d[4764]: Authentication failed for UNKNOWN USER
Aug 25 07:52:10 - popa3d[4766]: Session from 192.168.1.21
Aug 25 07:52:10 - popa3d[4766]: Authentication failed for UNKNOWN USER
Aug 25 07:52:10 - popa3d[3046]: 192.168.1.21: per source limit reached
</span>

Thanks for the help guys! :D
"Initial Success Or Total Failure"
User avatar
BomBtek
Junior Member
 
Posts: 44
Joined: Thu Jun 20, 2002 10:39 am

Postby Thasaidon » Sat Aug 25, 2007 9:00 am

I changed the /16 to /24 although I don't understand the difference

the /16 and /24 are just another way of setting your subnetmask
/16 means 255.255.0.0 and /24 means 255.255.255.0

But this has nothing to do with your problem.

Just a simple question...
have you created the user bombtek on your freesco?
Experience shared, is experience gained.

Thasaidon's Freesco Page




Image
User avatar
Thasaidon
Advanced Member
 
Posts: 411
Joined: Tue Feb 05, 2002 9:38 am
Location: The Netherlands

Postby BomBtek » Sat Aug 25, 2007 3:33 pm

User has been created:

Image
"Initial Success Or Total Failure"
User avatar
BomBtek
Junior Member
 
Posts: 44
Joined: Thu Jun 20, 2002 10:39 am

Postby dingetje » Sat Aug 25, 2007 5:42 pm

Your account name starts with a capital B, whereas you've used with a lowercase b in the outlook settings.
Try with telnet session first as suggested by Thaisadon. When that allows you to login to the POP3 mailbox at least you can rule out account issues.
Use the next sequence:
Code: Select all
telnet 192.168.1.1 110
user Bombtek
pass *******


each line in above POP3 test should result in an OK prompt from the POP3 server on your FREESCO.

The next hurdle to take is to configure exim correctly. I've found the verbose debug run of exim usually very informative, see <a href='http://dingetje.homeip.net/dokuwiki/freesco/howtos/exim_virtual_domains#testing' target='_blank'>http://dingetje.homeip.net/dokuwiki/freesc...domains#testing</a>

BTW are you testing from local LAN or from the "outside"? In the latter case, did you remember to take out the firewall rules in the rc scripts?

Also it looks like you're routed via another router (you have a private ip on your "internet" eth0), so make sure that router is not spoiling anything.
GreetZ
http://dingetje.homeip.net

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO Crazed !!
 
Posts: 1001
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Postby Thasaidon » Sun Aug 26, 2007 1:43 am

I'm not sure, but I think Outlook does not support uppercase letters in the usernames.
So I think the most easy solution is to delete the Bombtek user and create a new bombtek user.

As for Freesco, I'm not sure Freesco (Exim) allows uppercase letters in the usernames either. I know SuSE Linux doesn't! (or at least advices NOT to use them).
Experience shared, is experience gained.

Thasaidon's Freesco Page




Image
User avatar
Thasaidon
Advanced Member
 
Posts: 411
Joined: Tue Feb 05, 2002 9:38 am
Location: The Netherlands

Postby BomBtek » Sun Aug 26, 2007 12:09 pm

Users deleted and recreated with lowercase, telnet session successful and accepts user and password. Outlook still gives error, but the pop3 error is gone:

Image

Exim verbose results: although I don't understand the results completely especially the second run as webmaster...

<span style='font-size:8pt;line-height:100%'>
[root@Freesco] exim -bv -d+verify bombtek@bt.getmyip.com
Exim version 4.50 uid=0 gid=0 pid=7489 D=fbb95cfd
Probably GDBM (compatibility mode)
Support for: OpenSSL Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz mysql
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply pipe smtp
Fixed never_users: 0
changed uid/gid: forcing real = effective
uid=0 gid=0 pid=7489
auxiliary group list: <none>
configuration file is /pkg/etc/exim.conf
log selectors = 00000efc 00020800
trusted user
admin user
changed uid/gid: privilege not needed
uid=600 gid=12 pid=7489
auxiliary group list: <none>
originator: uid=0 gid=0 login=root name=root
sender address = root@bt.getmyip.com
Verifying: uid=600 gid=12 euid=600 egid=12
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Verifying bombtek@bt.getmyip.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering bombtek@bt.getmyip.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing bombtek@bt.getmyip.com
--------> dnslookup router <--------
local_part=bombtek domain=bt.getmyip.com
checking domains
bt.getmyip.com in "localhost : bt.getmyip.com : router.inet"? yes (matched "bt.getmyip.com")
bt.getmyip.com in "! +local_domains"? no (matched "! +local_domains")
dnslookup router skipped: domains mismatch
--------> system_aliases router <--------
local_part=bombtek domain=bt.getmyip.com
calling system_aliases router
rda_interpret (string): ${lookup{$local_part}lsearch{/etc/aliases}}
search_open: lsearch "/etc/aliases"
search_find: file="/etc/aliases"
key="bombtek" partial=-1 affix=NULL starflags=0
LRU list:
:/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="bombtek"
file lookup required for bombtek
in /etc/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases router declined for bombtek@bt.getmyip.com
--------> userforward router <--------
local_part=bombtek domain=bt.getmyip.com
userforward router skipped: verify 2 0 0
--------> localuser router <--------
local_part=bombtek domain=bt.getmyip.com
checking for local user
calling localuser router
localuser router called for bombtek@bt.getmyip.com
domain = bt.getmyip.com
set transport local_delivery
queued for local_delivery transport: local_part = bombtek
domain = bt.getmyip.com
errors_to=NULL
domain_data=NULL localpart_data=NULL
routed by localuser router
envelope to: bombtek@bt.getmyip.com
transport: local_delivery
bombtek@bt.getmyip.com
router = localuser, transport = local_delivery
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=7489 terminating with rc=0 >>>>>>>>>>>>>>>>
[root@Freesco]
[root@Freesco] exim -bv -d+verify webmaster@bt.getmyip.net
Exim version 4.50 uid=0 gid=0 pid=7499 D=fbb95cfd
Probably GDBM (compatibility mode)
Support for: OpenSSL Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz mysql
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply pipe smtp
Fixed never_users: 0
changed uid/gid: forcing real = effective
uid=0 gid=0 pid=7499
auxiliary group list: <none>
configuration file is /pkg/etc/exim.conf
log selectors = 00000efc 00020800
trusted user
admin user
changed uid/gid: privilege not needed
uid=600 gid=12 pid=7499
auxiliary group list: <none>
originator: uid=0 gid=0 login=root name=root
sender address = root@bt.getmyip.com
Verifying: uid=600 gid=12 euid=600 egid=12
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Verifying webmaster@bt.getmyip.net
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering webmaster@bt.getmyip.net
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing webmaster@bt.getmyip.net
--------> dnslookup router <--------
local_part=webmaster domain=bt.getmyip.net
checking domains
bt.getmyip.net in "localhost : bt.getmyip.com : router.inet"? no (end of list)
bt.getmyip.net in "! +local_domains"? yes (end of list)
calling dnslookup router
dnslookup router called for webmaster@bt.getmyip.net
domain = bt.getmyip.net
DNS lookup of bt.getmyip.net (MX) gave NO_DATA
returning DNS_NODATA
DNS lookup of bt.getmyip.net (A) succeeded
64.74.96.241 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
fully qualified name = bt.getmyip.net
bt.getmyip.net 64.74.96.241 mx=-1 sort=-341
set transport remote_smtp
queued for remote_smtp transport: local_part = webmaster
domain = bt.getmyip.net
errors_to=NULL
domain_data=NULL localpart_data=NULL
routed by dnslookup router
envelope to: webmaster@bt.getmyip.net
transport: remote_smtp
host bt.getmyip.net [64.74.96.241]
webmaster@bt.getmyip.net
router = dnslookup, transport = remote_smtp
host bt.getmyip.net [64.74.96.241]
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=7499 terminating with rc=0 >>>>>>>>>>>>>>>>
</span>

I am testing inside the Lan, but plan on recieving emails from outside. My private IP is from a DSL modem, which kinda acts as a router, but I have the security features disabled and NAT setup to mirror Freesco's port forwards including 25 and 110. It also has dydns support, but I am using freesco's instead.

Thanks for the help, I'd be lost right now... :o
"Initial Success Or Total Failure"
User avatar
BomBtek
Junior Member
 
Posts: 44
Joined: Thu Jun 20, 2002 10:39 am

Postby Zedde » Sun Aug 26, 2007 1:47 pm

Have you tested to use the local IP adress when conf outlook

When you start exim do you get any error msg ?
"From now until the end of the world,
we and it shall be remembered.
We few, we Band of Brothers.
For he who sheds his blood with me shall be my brother."
User avatar
Zedde
Junior Advanced Member
 
Posts: 157
Joined: Mon May 20, 2002 3:38 pm
Location: Sweden

Next

Return to 3rd Party Package Support for FREESCO v0.3.x

Who is online

Users browsing this forum: No registered users and 1 guest