NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PLEASE HELP! mail not working :(
-------- Original-Nachricht --------
Datum: Sat, 07 Jun 2008 20:34:34 +0200
Von: "netbsd unix" <nbsdold%gmx.net@localhost>
An: netbsd-help%NetBSD.org@localhost
Betreff: PLEASE HELP! mail not working :(
Dear people,
With all due respect, after all these hours, I am getting quite fed up with
NetBSD's mail system... on the other hand, I am not very experienced.
I once already had a discussion here about setting up e-mail, and after
numerous hours, it finally worked; I wrote a short summary, and when I tried
it... it DIDN'T work.
I am getting repeatedly a "smtp connection refused" error when I try to run
fetchmail. telnet localhost 25 does not work either.
What I did so far:
The machine is connected to an internal network (in this case, of a dormitory)
which, by DHCP, assigns the IP address 10.0.0.132 to the machine. This happens
every time the machine connects. How you find the ip-address, assuming your
network card is ex0: ipconfig ex0. You are not being assigned anything else
than this IP address. (No network name or similar).
You have the username "thatsme" (with the password "mypass", this password is
not important here) on your local machine - let us call it
fancy.machinename.net as hostname, and machinename.net as domain. Your mail
provider is somenet.com, with mail.somenet.com and pop.somenet.com used to send
and receive mails; your username there is "myadr%somenet.com@localhost", and
password is "mymailpass".
What I did so far is:
in /etc/rc.conf write:
dhclient=yes
hostname=fancy.machinename.net
in /etc/hosts write:
10.0.0.132 fancy.machinename.net
10.0.0.132 localhost -- whether it is this or 127.0.0.1 does not make a
difference, later on it just fails with 127.0.0.1 if I leave the original value.
in /etc/postfix/main.cf write:
myhostname = fancy.machinename.net
mydomain = machinename.net
mynetworks_style = host
relayhost = mail.somenet.com
smtp_generic = hash:/etc/postfix/generic
in /etc/postfix/generic write:
thatsme%fancy.machinename.net@localhost myadr%somenet.com@localhost
then issue the following commands:
# postmap /etc/postfix/generic && postfix check && /etc/rc.d/postfix reload'
$ date | mail -s TEST thatsme%fancy.machinename.net@localhost
Indeed, I got an e-mail with the date.
I use fetchmail, and in .fetchmailrc I wrote
poll pop.somenet.com protocol pop3 user "myadr%somenet.com@localhost" password
"mymailpass"
since .fetchmailrc must not have more rights that -rwx--x---, I set the rights
with chmod as user thatsme:
chmod u=rwx,g=x,o= .fetchmailrc
now, I should be able to send and receive e-mails.
But when I now say
$ fetchmail -v
I see it successfully connects to pop.somenet.com, SEES that there are two
e-mails, and is totally unable to actually GET them:
(Blabla)
Trying to connect to 10.0.0.132/25...connection failed
fetchmail: connection to localhost:smtp [10.0.0.43/25] failed: Connection
refused
fetchmail: SMTP connect to localhost failed
(blabla)
PLEASE HELP! What's the matter with this?!
Kind regards,
Nino
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
Home |
Main Index |
Thread Index |
Old Index