smtp? mua? mta? lda?postfix? AWWWW
I really have no clue what I'm doing. I want an email server that I can use to send emails to other people <like yahoo.com or hotmail.com users> with remote windows machines and outlook express <or some other windows email client>. I've read "Red Hat Linux Networking and System Administration" and "Red Hat Linux 8 Bible". I know believe I am more confused than I was before. My linux computer has no internet hostname. the only hostname it has is "TheWeb" and thats for my home networking. postfix keeps giving me something about a bad host name cause it's not "***.domain.com" format. All I can configure it with is ipaddresses, can I not host my own email server with only ip addresses?
|
You can.You should use the following form: account@[mail_server_ip_address]
of email address. The brackets [ ] are important. |
I dont think I understand. The postfix configuration file wants this format to even start "computer_name.domain_name.com" I want this computer (which doesn't have a public domain name) to send emails to a yahoo or hotmail email address. I need postfix to work first <I want to use postfix instead of sendmail>. I just want to setup a pop3 and smtp server on my home computer, so I dont have to use public accounts, and therefore get spammed. I just dont know how to get it running.
|
I am sorry, but I don't know postfix. I also never used sendmail. The server which I'am using is running qmail which is totally bug-free program.
My statement that you could use IP was a general statement - I am using the this feature so it is possible. Qmail is able to work with IP instead of domain name. |
postfix is easy !
u must configure /etc/postfix/main.cf on clients u may give your linux ip for pop and smtp server name i hope it works |
I tried the postfix main.cf file below. I have tried typing <as root, if that means anything> sendmail hotrodowner, su hotrodowner, mail hotrodowner; and it says there is no mail. I also tried "sendmail <user>@hotmail.com", but no message gets there. I tried "mail <user>@hotmail.com", test for subject, <control-d>, enter; and that doesn't get there either. What am I doing wrong?
ok, heres my postfix file: <This file has been removed, due to security reasons> |
# Common e-mail tools
sendmail - postfix - sends mail to local users (and internet when configured correctly) fetchmail - gets mail from internet accounts (non-Hotmail type) procmail - sorts and delivers into separate mailboxes mutt - mail client that sucks less than all the others Email the Linux Way Suresh Ramasubramanian's email guide The Linux Mail User HOWTO The Linux Electronic Mail Administrator HOWTO SquirrelMail web mail Gotmail, a utility to download mail from Hotmail type accounts |
ok, I know what the tools are, but does someone know how to configure postfix to send mail to local users? Then I have to learn how to send mail to other computers with only an IP address to work with. I dont mean to sound lazy <I know I do.>, but I just dont understand the how-to's. I need someone to clear things up a bit.
|
Sorry, I use sendmail.
Isn't it configured that way by default? I know sendmail is on Redhat. Local mail can be found in /var/spool/mail/<user> if it's being delivered. Most apps have a user mailing list. Perhaps you shoud sign up for it. All the ones I use are very friendly and helpful. |
What does the file /var/log/maillog say when you send mail.
|
I dont understand this, I didn't configure sendmail any what so ever, and when I use mail <user>@yahoo.com, it goes through. But when I start postfix instead, I get nothing. /var/log/maillog says the following:
Jan 7 04:02:23 TheWeb sendmail[2151]: a0792NEM002151: from=root, size=4174, class=0, nrcpts=1, msgid=<199601070902.a0792NEM002151@localhost.localdomain>, relay=root@localhost Jan 7 04:02:24 TheWeb sendmail[2151]: a0792NEM002151: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30039, relay=localhost.localdomain. [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by localhost.localdomain. <ps. the cmos battery is dead> |
Well, I gave my computer a fake domain name and it can now send mail to my yahoo account, what ports need to be open for it to accept replies?
|
port 25 to recieve mail
|
also make sure your sendmail or postfix is listening on the right interface....i had a slight problem with that, i had port 25 open but
sendmail was only looking for mail on IP 127.0.0.1 so i was sending all i wanted but wasnt getting any back, i used webmin to find the problem, webmin is a web based tool for configuring almost anything on the system http://webmin.com |
but how do I use webmin when I have no gui? can I connect to webmin from another machine?
|
yea, it runs by default on port 10,000,
http://machine:10000 where machine could be the ip you'll have to allow access to that port though in your iptables rules or something.... ill try it out and post back if it worked for me, be back in like 5 minutesl |
yea it worked, i got in to webmin from my dads computer down the hall.
i just added a rule to my iptables to allow it: iptable -A input -s 192.168.1.0/24 -p tcp --dport 10000 -j ACCEPT we have an internal LAN thing going on so i only allowed internal connections to the port. but the rule will be deleted when i post this reply. |
Thank you so much, I'll be back with the results!
|
Webmin is now working correctly, but postfix is not. I have my modem set to forward connections on port 25, but my emails do not get through. My email account gives me failure, and it says the message timed out. Is there any options in postfix that could be set by default to not allow me to receive replies. My email format for replies is "root@<public ip address of modem>" Am I doing the replies wrong or is it a problem with postfix?
my other email account just gave me this: ----- Transcript of session follows ----- 550 5.1.2 ... Host unknown (Name server: <my public ip address of modem>: host not found) |
Why does postfix not accept my email messages?
|
sendmail wouldnt accept mine and it was because it wasnt listening on the
correct ip address. Also, you may need an MX reccord in a DNS server somewhere, but maybe not. Are you sending to a domain name or an IP address? |
Quote:
The message could not be sent because one of teh recipients was rejected by the server....Protocol: SMTP Server Response: '554 <(username)@yahoo.com>: Recipient address rejected: Relay access denied', Port 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79 |
now, when I try to reply to my messages, I get this:
Message from yahoo.com. Unable to deliver message to the following address(es). <hotrodowner@(my_public_ip_address)>: (my_public_ip_address) does not like recipient. Remote host said: 554 <hotrodowner@(my_public_ip_address)>: Recipient address rejected: Relay access denied Giving up on (my_public_ip_address). |
All times are GMT -5. The time now is 10:25 PM. |