View previous topic :: View next topic |
Author |
Message |
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Wed Jan 18, 2006 12:44 pm Post subject: no-multidomain postfix mail server |
|
|
I've searched for a good howto to setup a mail server (i want to use postfix as i read it's more essential) and i found this:
http://www.gentoo.org/doc/en/virt-mail-howto.xml .
The problem's that i need something simpler: my server has no virtual domains and i need just a mail server that will make me able to host various user addresses on my single domain.
Can you point me some howto or give me some indication on how to do this? _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Wed Jan 18, 2006 8:23 pm Post subject: |
|
|
http://gentoo-wiki.com/HOWTO_Small_Email_Server_with_Postfix_with_POP3_%28TLS%29
This one helps. Don't use Courier, I'd use Dovecot. Stop before the bit on SSL.
Basically, emerge Postfix. Make sure the machine has a proper hostname/domainname. Emerge Bind (just as caching DNS) and enjoy.
Most people try to do far too much in /etc/postfix/main.cf and there's no need.
Ensure you have syslog set up and let /var/log/maillog be your guide.
And post here otherwise. |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Fri Jan 20, 2006 4:58 pm Post subject: |
|
|
ok, i managed to install postfix and courier-pop3 and i manage to send and receive mails from inside my network (i mean, i tried to send a mail from my server to my server).
Now the problem's this: how do i enable receiving and sending of messages from/to outside my network? And what ports will my router have to forward? _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Fri Jan 20, 2006 5:44 pm Post subject: |
|
|
If you want messages into Postfix then port 25 needs to be opened. If you want users to check for POP3 email from 'outside' then you'd need port 110. Postfix will use 25 (dest port) for outgoing too. |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Fri Jan 20, 2006 8:16 pm Post subject: |
|
|
thanks for the help magic919..
If i use thunderbird i can only send and receive mail from inside my network (the server can send mail only to itself) and i cannot understand why..
If i telnet the server i am able to relay my mail to the outside (and this is something i do not want, how to disable it? - or how do i setup postfix so that only my local machines are able to use my server for outgoing mail?).
Any ideas?
EDIT: also, /etc/mail/aliases 's function is not very clear to me.. _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Sat Jan 21, 2006 12:00 pm Post subject: |
|
|
ok, i can now send mail to the outside with the server and i think i understood how to allow relay only for local machines..
Still, my server can't receive mail from smtp servers that are outside my network.. _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sat Jan 21, 2006 3:05 pm Post subject: |
|
|
/etc/mail/aliases is just there to redirect mail sent to one address to another mailbox. So on mine mail for root might go to user tony, for example. It's good for making a mailing list function - email to sales@ can go to bob, joe and jane.
What you need to do is clarify whather outside machines can reach your server - usual telnet port 25 will be fine. If not then check the router. If they can reach there does Postfix refuse the email? If so, why? Email to valid_user@yourdomain.com should be accepted from anywhere.
Let me know what's happening. |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Sun Jan 22, 2006 10:32 pm Post subject: |
|
|
thanks again magic.. really nice of you
anyway, my server should be reachable from the outside (i can't really say because i have no easy way to access it from outside my network), because i setup port forwarding on the router and the postfix server answers on port 25 when i use telnet (telnet dosmary.ath.cx 25).
and looks like postfix has no knowledge of incoming mail:
/var/log/messages indicates no refused messages
I have no /var/log/mail
SMTPs i use to send mail to my server send me a delivery status notification like this:
Code: | These recipients of your message have been processed by the mail server:
whatever@dosmary.ath.cx; Failed; 4.4.7 (delivery time expired) |
could it be because my ISP is blocking some ports? (though i doubt it) _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Mon Jan 23, 2006 4:00 pm Post subject: |
|
|
Hi. It can be that the ISP blocks port 25. Some of them do here, but will open up when requested.
Try this test from the server
Code: | telnet relay-test.mail-abuse.org |
It will connect back to your IP port 25 and test for open relay - just as a useful tool to make sure 25 is open. |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Mon Jan 23, 2006 8:40 pm Post subject: |
|
|
Code: | mordred@avalon ~ $ telnet relay-test.mail-abuse.org
Trying 168.61.4.13...
Connected to cygnus.mail-abuse.org.
Escape character is '^]'. |
_________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Mon Jan 23, 2006 9:04 pm Post subject: |
|
|
If you don't see the 20 tests running then you can't be reached on port 25 |
|
Back to top |
|
|
|