Page 1 of 1
Email problems...
Posted: 12 Apr 2007, 17:06
by jamerson
Hi!
Several problems...
Seems my email settings have been corrupted somehow.
I can log in fine to both the webmail and from Mail.app (os x).
But I cannot receive any emails or send.
The problem seems to have something with myhostname to do...
First of all I have added five domains which the Bubba should handle email for. Wrote them space separated in the text field, as stated in the users' manual.
BUT: When I log onto the webmail I'm logged in as pelle@localhost.
That can't be good.
My mail.log shows the logins fine, but then there are lines saying:
warning: valid_hostname: invalid character 32(decimal): bubba.domain1.tld domain2.tld domain3.tld domain4.tld domain5.tld
and:
fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: bubba.domain1.tld domain2.tld domain3.tld domain4.tld domain5.tld
It's the bubba.domain1.tld that confuses me most...
The mail.err states the same as the second one here...
Any ideas?
/pelle hedeblom
Posted: 13 Apr 2007, 02:31
by jamerson
Oh!
And my main.cf (note that I have not edited it in itself, just used the web interface):
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
# Entries that might change
# myhostname = bubba
mydomain = hedeblom.se smiffel.se protalen.se villapojkarna.se lola.nu
relayhost =
home_mailbox = Mail/
mynetworks_style = subnet
mydestination = $myhostname $mydomain localhost.$mydomain localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
disable_vrfy_command = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
reject_unauth_pipelining
reject_invalid_hostname
reject_non_fqdn_sender
reject_unknown_sender_domain
reject_non_fqdn_recipient
reject_unknown_recipient_domain
reject_rbl_client list.dsbl.org
reject_rbl_client relays.ordb.org
reject_rbl_client dnsbl.njabl.org
reject_rbl_client dnsbl.sorbs.net
reject_rbl_client bl.spamcop.net
permit
Posted: 14 Apr 2007, 05:29
by johannes
jamerson,
I just tried it myself, and can confirm that this is a bug on our side. We'll look in to it, but until we have a new release, it should work to alter your main.cf manually, to get it something like this:
Code: Select all
# mydomain = (comment out)
bubbahosts = domain1.com domain2.com
mydestination = localhost bubba $bubbahosts
myhostname = mail.domain.com (or where the MX pointer points to)
Posted: 16 Apr 2007, 03:48
by jamerson
That worked fine!
Now I can receive email. And once I managed to send from mail.app.
But trying to send now generates this in mail.log:
Apr 16 09:39:34 bubba postfix/smtpd[15103]: connect from unknown[192.168.0.1]
Apr 16 09:39:34 bubba postfix/smtpd[15103]: lost connection after EHLO from unknown[192.168.0.1]
Apr 16 09:39:34 bubba postfix/smtpd[15103]: disconnect from unknown[192.168.0.1]
Any ideas?
Posted: 17 Apr 2007, 08:27
by johannes
Strange.. But what is 192.168.0.1 on your network? Your router/gateway?
And, just so I understand everything, it doesn't work to send emails outside? Does it work locally (inside your LAN)?
Posted: 17 Apr 2007, 13:42
by jamerson
yes. 192.168.0.1 is my router.
it's not possible to connect to the server when sending. wan/lan doesn't matter.
what authentication method should be specified in mail.app?
Now I just use password...
But the problem is that it doesn't even try to authenticate. Stops at EHLO (whatever that means

).
Should there be any other ports open than smtp and imap?
/pelle
Posted: 17 Apr 2007, 13:57
by johannes
Ah, Ok. My best guess now is that your ISP has blocked port 25, something quite common to prevent spammers from high-jacking machines as mail servers.. Could you check with your ISP?
Posted: 17 Apr 2007, 16:41
by jamerson
You wish it were that simple
I dagsläget blockerar TDC inga portar i nätet. Dock kan detta förändras i framtiden även om vi idag inte har några planer för detta.
Posted: 17 Apr 2007, 17:18
by jamerson
Hmmm.
It was even simpler. But not less worrying...
Below are the choices one has when telling mail.app how to authenticate:
What I did first was to use Password.
What finally worked was using None.
And that generates, in mail.log:
Apr 17 23:05:39 bubba postfix/smtpd[17751]: connect from unknown[192.168.0.1]
Apr 17 23:05:39 bubba postfix/smtpd[17751]: B1BCD203C1A5: client=unknown[192.168.0.1]
Apr 17 23:05:39 bubba postfix/cleanup[17776]: B1BCD203C1A5: message-id=<
[email protected]>
Apr 17 23:05:39 bubba postfix/qmgr[17679]: B1BCD203C1A5: from=<
[email protected]>, size=606, nrcpt=1 (queue active)
Apr 17 23:05:41 bubba postfix/smtp[17777]: B1BCD203C1A5: to=<
[email protected]>, relay=gmail-smtp-in.l.google.com[66.249.93.27], delay=2, status=se$
Apr 17 23:05:41 bubba postfix/qmgr[17679]: B1BCD203C1A5: removed
Apr 17 23:06:39 bubba postfix/smtpd[17751]: disconnect from unknown[192.168.0.1]
Does this mean that anyone can send email through my smtp server?
Posted: 19 Apr 2007, 16:50
by johannes
Hmm, I _think_ that it only is possible to use the SMTP from within your LAN, but I'll have to double check. This would explain why authentication isn't enabled. Tor who knows more about this is currently unavailable for a few days, I'll try to find out as soon as I can.
Posted: 19 Apr 2007, 17:09
by jamerson
No rush!
I'll wait for Tor to get back!
/pelle
Posted: 22 Apr 2007, 06:27
by tor
Hi Jamersson,
Regarding authentication of postfix.
We don't use any authentication as you found out yourself. What we do instead is that we only allow relaying from the local subnet. That means, only hosts located on the same subnet as bubba are allowed to send email to not known domains. The line in the config that states that is:
So dont change that if you dont know what you are doing. And also one should not put Bubba on a public IP interface.
So to sum things up. With the config discussed above you would accept incomming mail for the domains you have stated and allow "sending" of mail from the local subnet most likely 192.168.0.x in your case.
/Tor
Posted: 24 Apr 2007, 11:46
by jamerson
Splendid!
Then to another question:
When I log onto the webmail I'm logged in as username@localhost
I can send emails, but those come from that "email address".
Is this because I have multiple email domains and is there any way to get it working with a proper email address?
/pelle
Posted: 24 Apr 2007, 13:29
by johannes
I think you should create some kind of profile (entering your full namet etc.) in Iloha. After that, make sure that you have selected the "use as default" checkbox on that profile.
Let me know if it helps!
Posted: 25 Apr 2007, 02:57
by jamerson
That did it!
Thanks!