Dovecot, postfix pop3/imap server issue
Hi
I'm having a problem setting up Dovecot: The command Code:
#telnet user smtp user/smtp: Temporary failure in name resolution. Does this mean that there is a problem in the aliases file? (/etc/aliases) Code:
#telnet localhost smtp Here is the configuration! postconf -n returns: Code:
alias_database = hash:/etc/aliases Dovecot -n returns: Code:
# 1.0.7: /etc/dovecot.conf Code:
# Basic system aliases -- these MUST be present. //Konduktorn |
The telnet command is;
Code:
telnet <hostname> <port> Code:
telnet localhost smtp You can set up shorthand names for machines by editing the file /etc/hosts Although be sure to back it up as it's kind of important. The smtp part is also short hand. It looks up a port number from a list of known ports/services (I think from /etc/services). So you could in fact re-write the whole command as; Code:
telnet 127.0.0.1 25 In short, the machine name "user" doesn't mean anything to the machine you're on. hence the error of failure in name resolution. As a side point; are you actually using Dovecot as an SMTP server? It normally acts as an IMAP server which you'll find on port 143. Try the following two commands and see what service responds to you. Code:
telnet localhost smtp Code:
telnet localhost imap |
Quote:
Perhaps you'll be able to assist me further: I registered a domain at dyndns.com, example.mine.nu How do i "Bind" this to my server, to the mail addresses so to speak, if you understand? And also, how do I register this on MX records? I hope you understand what I mean, I'm used to all the names and terms. /Konduktorn |
I haven't used dyndns so this might be a bit vague. If anyone else has they might be able to offer better advice.
You need to tell dyndns what your IP address is. If you're on a connection that changes IP periodically then you'll need a way to update your dyndns record. That's a separate problem and probably best to try they're help files or forums. Once you've entered your IP address into your account all requests to your domain (example.mine.nu) will be sent to your modem/router. If you're using a router than you need to set up some kind of port forwarding from the router to the machine that runs the service you're trying to serve. Obviously forward the required port. 25 for mail, 22 for ssh, 80 for web. If you have access to an account on an outside machine you can now test that with your new found telnet skills ;) By using telnet (from the outside) you should get a connection to the appropriate service. MX records are simple a subset of a DNS record used specifically by email. It means that you can host your email on a separate machine to your webserver. In your case you simple want your MX record to point to the same IP as the rest of your domain. In summary what you want is; 1) Correct IP address in dyndns 2) Same IP for your MX record 3) Set up port forwarding on your router to pass the connection to the correct machine. 4) Set up a service on the receiving machine. Sorry that's not more specific. You best bet from here is to google around for a few examples on seting up web/mail servers on your distribution. One thing to always keep in mind. If you open up a service to the outside world it's very important that you keep that machine up to date and consider any possible insecure setups. It's a hostile world out there on the net. Good luck, don't give up and remember google/man pages are your friend. |
All times are GMT -5. The time now is 07:12 AM. |