Page 1 of 1

Using the B2 as a mail server

Posted: 21 Feb 2010, 09:09
by RandomUsername
Hi,

Today I've started playing around with the email facilities built into the B2. Email servers are something I have no experience of so I've a couple of questions.

1. I have a dyndns domain pointing to my B2 and emails to darren@domain are coming through to the Horde webmail client with no problem. However, I'm trying to set up an alternative email address as well (e.g. mail@domain) and I'm having a bit more trouble with that. I've tried adding this line to /etc/aliases:
darren: mail@domain,darren@domain
and then running

Code: Select all

newaliases
emails to darren@domain still come through but not emails to mail@domain.

I've tried adding the addresses to the aliases option in Horde itself under Mail | Personal information. Same result. I've tried both of these things separately and one at a time.

mail.log doesn't really tell me anything and the horde log file is empty.

Can anyone offer any other suggestions?

2. Whilst investigating the above I noticed a couple of strange entries in mail.log and I hope someone can tell me what they are doing there.

This:
Feb 21 13:30:39 server postfix/smtpd[3706]: connect from inf-mxout4.simplymailsolutions.com[88.151.129.24]
Feb 21 13:30:40 server postfix/smtpd[3706]: 625A2CFA8A: client=inf-mxout4.simplymailsolutions.com[88.151.129.24]
Feb 21 13:30:40 server postfix/cleanup[3710]: 625A2CFA8A: message-id=<[email address redacted]>
Feb 21 13:30:40 server postfix/qmgr[28432]: 625A2CFA8A: from=<[email address redacted]>, size=1094, nrcpt=1 (queue active)
Feb 21 13:30:40 server postfix/smtpd[3706]: disconnect from inf-mxout4.simplymailsolutions.com[88.151.129.24]
Feb 21 13:30:40 server postfix/local[3712]: 625A2CFA8A: to=<[email address redacted]>, relay=local, delay=0.69, delays=0.53/0.14/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Feb 21 13:30:40 server postfix/qmgr[28432]: 625A2CFA8A: removed
and this:
Feb 21 13:37:24 server postfix/smtp[3998]: connect to mx2.mail.eu.yahoo.com[77.238.177.142]:25: Connection timed out
Feb 21 13:37:24 server postfix/smtp[3999]: connect to mx10.simplymailsolutions.com[88.151.129.10]:25: Connection timed out
Feb 21 13:37:45 server postfix/smtp[3998]: connect to mx1.mail.eu.yahoo.com[217.12.11.35]:25: Connection timed out
Feb 21 13:37:45 server postfix/smtp[3998]: 38490CF9BB: to=<[email address redacted]>, relay=none, delay=165411, delays=165368/0.15/42/0, dsn=4.4.1, status=deferred (connect to mx1.mail.eu.yahoo.com[217.12.11.35]:25: Connection timed out)
My wife uses Yahoo mail and my email is currently hosted by simplymailsolutions.com so the attempts to connect to their respective servers make sense in that regard. But I can't see why the B2 is trying to connect to these servers at all. All my wife's email is handled through a web browser and my own email is mostly handled with Thunderbird with the IMAP and SMTP servers set up as Simplymailsolutions' own servers. Therefore the B2 shouldn't be involved in any kind of mail delivery for either of us.

Any ideas what's going on there?

Thanks.

Darren.

Re: Using the B2 as a mail server

Posted: 23 Feb 2010, 07:15
by RandomUsername
Bump

Re: Using the B2 as a mail server

Posted: 25 Feb 2010, 20:10
by RandomUsername
Am I the only one trying to do something similar then?

I'm finishing a block of work this morning so I'll have a few days at home to play with this again. Will post any progress I make* for anyone looking in the future.

Darren.

*progress not guaranteed.

Re: Using the B2 as a mail server

Posted: 26 Feb 2010, 04:57
by asparak
Hi Darren,

I use B2 to collect mail from several accounts, plus acts as my SMTP server, for my mobile phone, works account (Thunderbird) and my horde pop collector and it works for me.

Are you trying to have the mail for both accounts come direct to your box, or is it held somewhere else and just pulled down to B2?

I mucked about with having it as the MX server of record, but didn't put a huge amount of time into it, so didn't get it working successfully, but I don't see any reason why it shouldn't. After all, its a lInux system.

Those log entries definitely indicate your B2 is acting as a relay for your outbound mail.

Rik

Re: Using the B2 as a mail server

Posted: 26 Feb 2010, 07:00
by pcrene
Hello

For muliple domains: add without the "," so e.g.: a.com b.com c.com

For aliases

its always one sources adres and multiple target adresses. example:

root: rene
info: rene, test@hotmail.com

Rene

Re: Using the B2 as a mail server

Posted: 01 Mar 2010, 16:20
by RandomUsername
asparak wrote: Are you trying to have the mail for both accounts come direct to your box, or is it held somewhere else and just pulled down to B2?
Yes. I currently have a hosted IMAP account that costs me about £14 per year. It's not a fortune but I thought as I own a B2 I may as well use it to its full potential and save myself the money. The alternative is Google but I don't trust them with too much of my personal info.
pcrene wrote:Hello

For muliple domains: add without the "," so e.g.: a.com b.com c.com

For aliases

its always one sources adres and multiple target adresses. example:

root: rene
info: rene, test@hotmail.com

Rene
Rene, you are my hero. All I had to do was this:
mail: darren
and any email to mail@domain.com goes into my own inbox.

Thanks.