View previous topic :: View next topic |
Author |
Message |
Goya13 n00b
Joined: 12 Aug 2004 Posts: 59
|
Posted: Thu Aug 12, 2004 3:45 am Post subject: SMTP Server on Gentoo |
|
|
So, I've converted to Gentoo, and now Im not going back!
This is the greatest OS I have seen to date.
Now, to the question at hand.
I am annoyed with my domain's smtp server. It rarely works. POP3 is nice, and it works all the time. But SMTP really stinks.
I want to set up an SMTP server at home on my constantly running Gentoo server behind a firewall. It has dydns set up, so I have some sort of dns.
I've tried emerging sendmail, qmail, and postfix. I can't get any of them to work with this situation. Is there anything I can do???
Please help....
-Allan |
|
Back to top |
|
|
30726 Veteran
Joined: 24 Sep 2003 Posts: 1501
|
|
Back to top |
|
|
Goya13 n00b
Joined: 12 Aug 2004 Posts: 59
|
Posted: Thu Aug 12, 2004 4:18 pm Post subject: |
|
|
I've read both mail server MTA docs back and forth. Neither of them seem to fit my need. I don't have a domain, but I do have dyndns. Plus I am behind a firewall. Which MTA do I need?? |
|
Back to top |
|
|
Goya13 n00b
Joined: 12 Aug 2004 Posts: 59
|
Posted: Thu Aug 12, 2004 4:19 pm Post subject: |
|
|
PS, anyone want a gmail account? |
|
Back to top |
|
|
DaveArb Guru
Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Thu Aug 12, 2004 5:20 pm Post subject: Re: SMTP Server on Gentoo |
|
|
Goya13 wrote: | I've tried emerging sendmail, qmail, and postfix. I can't get any of them to work with this situation. Is there anything I can do???
|
It would be helpful to be more specific on what didn't work.
Goya13 wrote: | I don't have a domain, but I do have dyndns. |
Separate two issues here. Having a domain, dyndns, whatever, that will become important in allowing mail to find you. But first, you need a working MTA to receive the mail, and that doesn't require any domain or DNS at all.
Goya13 wrote: | Plus I am behind a firewall. |
I would guess that describes nearly 100% of MTAs on the 'net.
Dave |
|
Back to top |
|
|
Goya13 n00b
Joined: 12 Aug 2004 Posts: 59
|
Posted: Thu Aug 12, 2004 6:13 pm Post subject: |
|
|
i heard that postfix is the easiset, so lets try this one for now.
i emerged it successfully and edited my main.cf file.
i get this error: postfix: warning: valid_hostname: misplaced delimiter: .domain.name
postfix: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: .domain.name
because my main.cf is not configured correctly.
i followed the instrcutions to the letter, perhaps incorreclty
mydomain = $domain.name
myhostname = $host.domain.name
im postivie that this is incorrect, but what do i put here instead??
im behind a firewall, in a NAT. my localhost is called ferrari
my domain is called chess
do i put ferrari.chess???? |
|
Back to top |
|
|
Goya13 n00b
Joined: 12 Aug 2004 Posts: 59
|
Posted: Thu Aug 12, 2004 6:21 pm Post subject: |
|
|
i tried ferrari.chess for hostname
and chess for domainname
so far so good
fired up mutt and sent an email to root
it got sent to my home adress with this msg
This is the Postfix program at host ferrari.chess.
I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the message returned below.
The Postfix program
<root@ferrari.Belkin>: Name service error for name=ferrari.belkin type=A: Host
not found
which is good, right?!!? this means i can send out.
omg! i just sent email to my email address at home and it worked that was awesome!!!!!!!!!!!!!!!!!!!!!!!!
its cool, the from address is: root <root@ferrari.Belkin>
omg it totally worked to my gmail account
now, question, is it possible for me to send email from this smtp server, without using mutt
perhaps using evolution on a computer some where else??? |
|
Back to top |
|
|
Goya13 n00b
Joined: 12 Aug 2004 Posts: 59
|
Posted: Thu Aug 12, 2004 6:25 pm Post subject: |
|
|
ok i apologize, that was a completely random post
now, here i am
i got postfix working within a firewall, and it is awesome!!!!!!!!
how do i remotly access this smtp server, though??
is it smtp.(MY-DYDNS.org thing) ???
thanks so much! |
|
Back to top |
|
|
Jowilly Guru
Joined: 22 Jun 2002 Posts: 319
|
Posted: Thu Aug 12, 2004 6:44 pm Post subject: |
|
|
Goya13 wrote: |
how do i remotly access this smtp server, though??
is it smtp.(MY-DYDNS.org thing) ???
thanks so much! |
Add smtp.MY-DYDNS.org to /etc/hosts
Code: |
127.0.0.1 smtp.MY-DYDNS.org smtp
|
In /etc/postfix/main.cf
Code: |
mydomain = MY-DYDNS.org
myhostname = smtp.MY-DYDNS.org
|
Reload Postfix conf files with postfix reload
Open smtp port 25 in your firewall
Then you can access from outside with evolution or outlook
login : yourlogin
password: yourpassword
email: you@MY-DYDNS.org
smtp server: smtp.MY-DYDNS.org
Port : 25
Then, if you want to retrieve emails you need pop3 or imap support. Both are provided when you emerge courier-imap
Follow the howtos. |
|
Back to top |
|
|
Goya13 n00b
Joined: 12 Aug 2004 Posts: 59
|
Posted: Thu Aug 12, 2004 6:48 pm Post subject: |
|
|
WOW, thanks for that help!!!
what would my pop3 email addresses be??
username@MY-DYDNS.org ??? |
|
Back to top |
|
|
Jowilly Guru
Joined: 22 Jun 2002 Posts: 319
|
Posted: Thu Aug 12, 2004 8:23 pm Post subject: |
|
|
Goya13 wrote: | WOW, thanks for that help!!!
what would my pop3 email addresses be??
username@MY-DYDNS.org ??? |
Yes, obviously, if you send email to username@MY-DYDNS.org you will retrieve it for the same email address.
Also, you will need to add an entry for pop.MY-DYDNS.org in /etc/hosts, ...
But an easier way if your smtp/imap/pop servers are on the same machine, and if you don't plan on separating them later, is to put everything (pop3 and smtp) at mail.MY-DYDNS.org (rename relevant entries in /etc/hosts, postfix conf,...).
For pop3 you will have to open port 110 on your firewall (port 143 for imap, if you need it.)
Follow the howtos. For example, emerge cyrus-sasl if you want ssl or tls encryption for your remote smtp/pop3/imap connections. |
|
Back to top |
|
|
|