Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

SMTP question

Got problems with your B2 or B3? Share and get helped!
LudwigVan
Posts: 50
Joined: 20 Aug 2009, 01:17

SMTP question

Post by LudwigVan »

I think somebody can help very quick. I checked the search in this forum but answers were multiple but not usable. So here is the question of the day:

I use bubba|2 as mailserver. Retreaving and reading via IMAP and e-mail client evolution works perfect. However sending does not work. As described in the manual I left the SMTP-settings in the admin-web-interface blank. But what do I put into the SMTP-setting in evolution?

L.
LudwigVan
Posts: 50
Joined: 20 Aug 2009, 01:17

Re: SMTP question

Post by LudwigVan »

Maybe I can put my question in a more simple way:

What is to be configured in the web-interface for SMTP?
and
What is to be put into the IMAP-Account for SMTP?

The amnual says to keep SMTP empty but gives no information how to configure the mail-client (in this case I use Evolution (Gnome/Ubuntu 9.10), however I think this is simmilar to all clients).

L.
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Re: SMTP question

Post by 6feet5 »

This is how I have it configured (not using evolution but that shouldn't matter).

In Evolution, create an account and set your bubba as server for both receiving and sending.

In bubba webgui (Mail->Sending Email), leave fields empty unless you ISP prevent you from sending mail without going via their server (which I think is the most common case), in which case you need to enter their SMTP server address in the server field, possibly with a username and password (check with you ISP).

/Johan
LudwigVan
Posts: 50
Joined: 20 Aug 2009, 01:17

Re: SMTP question

Post by LudwigVan »

Ok, that's what I allready tried, but could not send mail. I will open some additional ports later. Maybe that's the reason.

Thank's for reply.

L.
LudwigVan
Posts: 50
Joined: 20 Aug 2009, 01:17

Re: SMTP question

Post by LudwigVan »

ok,

I have ports open: 25, 143, 993 and of course 80
IMAP configuration on Evolution is
Server bubba.local for receiving - which works
Server bubba.local for SMTP - which does not work

In the web-interface for admin all is left empty - except the user field. However there is a user name which accidentely I put in during first configuration, not knowing what I was doing. I assume that this is the reason why I can not send mail. How can I purge this or is there another reason why I can not send mail?

L.
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Re: SMTP question

Post by 6feet5 »

Can't you just leave the user name field empty?

Try leaving all fields empty. Send a mail and see if it works (/var/log/mail.log might tell what's going on, search for "postfix/smtp" entries).

If it didn't work (which I think is a common case among many ISP) then you need to send your mail via a server provided by you ISP. Your ISP should have told you the address and if you need a username/password. Enter the information needed and try again.

/Johan
LudwigVan
Posts: 50
Joined: 20 Aug 2009, 01:17

Re: SMTP question

Post by LudwigVan »

Hey Johan,

I can not get rid of the user in the user-field. Even if I delete it and save it reappears.

I tried now to send again as you said, mail.log gets me the following:

Code: Select all

Feb 20 16:26:42 bubba dovecot: imap-login: Login: user=<ingino>, method=PLAIN, rip=192.168.10.62, lip=192.168.10.1, TLS
Feb 20 16:27:23 bubba postfix/smtpd[4485]: connect from unknown[192.168.10.62]
Feb 20 16:27:23 bubba postfix/smtpd[4485]: disconnect from unknown[192.168.10.62]
Feb 20 16:28:24 bubba postfix/master[1832]: terminating on signal 15
Feb 20 16:28:28 bubba postfix/master[4573]: daemon started -- version 2.5.1, configuration /etc/postfix
Feb 20 16:28:36 bubba fetchmail[30258]: awakened at Sat Feb 20 16:28:36 2010
Feb 20 16:28:37 bubba fetchmail[30258]: sleeping at Sat Feb 20 16:28:37 2010 for 300 seconds
Feb 20 16:30:02 bubba postfix/pickup[4574]: 1A8B610B524: uid=0 from=<root>
Feb 20 16:30:02 bubba postfix/cleanup[4591]: 1A8B610B524: message-id=<20100220153002.1A8B610B524@bubba.localdomain>
Feb 20 16:30:02 bubba postfix/qmgr[4575]: 1A8B610B524: from=<root@bubba.localdomain>, size=601, nrcpt=1 (queue active)
Feb 20 16:30:02 bubba postfix/local[4593]: 1A8B610B524: to=<root@bubba.localdomain>, orig_to=<root>, relay=local, delay=0.59, delays=0.37/0.19/0/0.03, dsn=2.0.0, status=sent (delivered to maildir)
Feb 20 16:30:02 bubba postfix/qmgr[4575]: 1A8B610B524: removed
Feb 20 16:33:37 bubba fetchmail[30258]: awakened at Sat Feb 20 16:33:37 2010
Feb 20 16:33:39 bubba fetchmail[30258]: sleeping at Sat Feb 20 16:33:39 2010 for 300 seconds
Any Idea? The Mail is still in the outgoing folder.

Evolution says

Code: Select all

Trying to connect to bubba.local: Connection refused
L.
LudwigVan
Posts: 50
Joined: 20 Aug 2009, 01:17

Re: SMTP question

Post by LudwigVan »

ok. I put in an ISP into the Bubba|2-Mail Frontend for sending mails. Did not work. My mail-client can not login into Bubba for sending mails. Although it logs in for IMAP.

I just tried one of my ISP for webmail by random into my mail-client and it sent the mail. But I don't like that. I want Bubba to handle this.

What also bothers me is that I can log in for IMAP with bubba.local but not if I use my external IP.

L.
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Re: SMTP question

Post by 6feet5 »

You seem to have two different problems, Evolution can't connect to your bubba and the user name can't be removed.

Examine the file /etc/postfix/main.cf and try removing the user manually.

Do you have netcat, putty, telnet or anything similar on the computer you're running Evolution from? If so, try to connect with the program to your bubba on port 25. You should receive a line like:

Code: Select all

220 bubba.localdomain ESMTP Postfix (Debian/GNU)
(type QUIT to return to command prompt). Show us the output if it fails.

/Johan
LudwigVan
Posts: 50
Joined: 20 Aug 2009, 01:17

Re: SMTP question

Post by LudwigVan »

6feet5 wrote: Examine the file /etc/postfix/main.cf and try removing the user manually.

/Johan
I am not that familiar with bash, however I can not edit main.cf. I have logged in via ssh and su rights but the editor can not open main.cf.

Maybe you can give me a hint?

L.
LudwigVan
Posts: 50
Joined: 20 Aug 2009, 01:17

Re: SMTP question

Post by LudwigVan »

Johan,

maybe you can also give me the telnet command line? I also tried without success. Thanks.

L.
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Re: SMTP question

Post by 6feet5 »

Hi,

What kind of OS is it you're using (Windows/Linux/Apple)?
I am not that familiar with bash, however I can not edit main.cf. I have logged in via ssh and su rights but the editor can not open main.cf.

Maybe you can give me a hint?
What's the output when you try to open the file with the editor?
Does the file exist (run 'ls /etc/postfix')?

Using telnet to connect to the mail server:

Code: Select all

telnet <IP> 25
where <IP> is the IP address to your bubba. You should receive a response similar to the one I mentioned in previous post. Type 'quit' followed by enter to disconnect from mail server.

/Johan
LudwigVan
Posts: 50
Joined: 20 Aug 2009, 01:17

Re: SMTP question

Post by LudwigVan »

I am using Linux being Ubuntu 9.10.

If I use telnet I get:

Code: Select all

user@user-laptop:~$ telnet 85.183.75.35 25
Trying...
telnet: Unable to connect to remote host: Connection timed out
85.183.75.35 is the fixed external IP I got from my ISP. Feel free to do a port scan.

Right now I do a port scan myself. However it takes hours. It did not reach port 25 yet. All other ports I opened do appear.

If I try to edit I get the following:

Code: Select all

user@bubba:~$ su
Password: 
bubba:/home/user# /etc/postfix/main.cf -e
bash: /etc/postfix/main.cf: Permission denied
bubba:/home/user# 

Code: Select all

bubba:/home/user# ls /etc/postfix
bubbadomains	main.cf    postfix-files   post-install  sasl_passwd
dynamicmaps.cf	master.cf  postfix-script  sasl		 sasl_passwd.db
bubba:/home/usre# 


L.
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Re: SMTP question

Post by 6feet5 »

Now I'm a bit confused. You're using the external IP address, does this mean you're trying to allow users on the outside (internet) to send mail via your bubba? Are you trying this on the same network as your bubba?

Your edit command is missing the name of the editor. The way you wrote it, you're trying to execute the file with '-e' as an argument, but the file isn't executable, hence the permission denied. Try

Code: Select all

nano /etc/postfix/main.cf
By the way, I noticed you wrote "bubba.local" in a previous post. I think this is for Mac only, so try removing the ".local" part.

/Johan
LudwigVan
Posts: 50
Joined: 20 Aug 2009, 01:17

Re: SMTP question

Post by LudwigVan »

I just checked with my ISP and no ports are blocked meaning also not port 25.

:?

L.
Post Reply