Frustration and confusion over setting up a Postfix mail server on my Ubuntu server.
To start off, It's worth mentioning that I'm still very confused about how the whole mail server thing works, and what software handles what job. From my understanding POP3 and IMAP are protocols to pull email from a mail server, and SMTP is used to push email to a server. There are many programs that I've seen involved with creating a mail server, but I'm trying to use just Postfix. Postfix can send and receive email right?
My server runs in my basement and runs Ubuntu Server 10.10. It uses Cherokee as its web server, and it runs several other servers as well (SSH, FTP, Git, etc). My goal is to set up a mail server so that websites I run such as a Redmine or a web forum can send emails to people (e.g. an activation email for a user registering on a forum). Anyway, I set up postfix, and now my server can receive email. I've been able to send an email from my Gmail address to drew@minipenguin.com (my server), and it works. However, if I try to send email from drew@minipenguin.com to my Gmail, it never goes through. I don't care about receiving email, as my only goal is to be able to send it. I can post any configuration files you want to see. Any help is appreciated! |
Something to start with,
what is your relayhost? It should be your ISP's smtp server. Do you have errors in your /var/log/mail ? |
Quote:
Code:
mail.err mail.info.1 mail.info.4.gz mail.log.2.gz mail.warn mail.warn.3.gz http://pastebin.com/QdJ4mrv1 (contents was too long) As for the relay host, I've tried several. I've tried nothing (send directly), smtp.gmail.com, and smtp.verizon.net (my ISP). As I said, I'm still very confused about how everything comes together and how to configure these mail-related things. |
Ahh, ok.
This line tells that you need to authenticate to smtp before sending. Code:
Apr 16 17:42:40 Server-01 postfix/smtp[13144]: D9E521DC0088: to=<pocketpqueens@aol.com>, relay=outgoing.verizon.net[206.46.232.12]:25, delay=393468, delays=393467/0.01/0.35/0.06, dsn=5.7.1, status=bounced (host outgoing.verizon.net[206.46.232.12] said: 550 5.7.1 Authentication Required (in reply to MAIL FROM command)) main.cf Code:
relayhost = isp.smtp.server Code:
isp.smtp.server username_to_your_isp:password_to_your_isp Code:
postmap /etc/postfix/isppwdfile |
In general - To be able to send mail to another servers you must be a valid sender.
This can be done in two ways: 1. Your server is configured correctly to be able to send mail. (Domain, relay, network) (This is probably not your case) 2. Sometimes you can find yourself in networks which just blocks the SMPT port 25: (Although your firewall can stop this trafic too :) ) Quote:
The connection request for port 25 to public mail servers just doesn't hit the final server. Sometimes ISP doesn't want you to be able to send direct email to public servers. In this case you should relay every outgoing mail thorough you ISP but for this you has to be verified as a user who is authorized to do so. I think this is what tva posted. |
Just to add a little to TVA's post, here is a link to a mini how to. In particular, the comments section may be of value. It mentions that there is a difference between smtp and smtpd authentication, one of which is used to authenticate to your relay host.
Aside from requiring authentication on relay host for outbound mails, it looks like you have things up and running. Getting a mail server working is no small task. |
All times are GMT -5. The time now is 05:49 PM. |