Re: mailserver absolute noob question
On 2-nov-2005, at 21:37, Thomas wrote:
You should add settings to /etc/postfix/main.conf for allowing mail
relaying. This should be done with care to avoid turning your server
into a spam spawning zombie. The simplest way is simply allowing
senders on your subnet:
Mitch Wiedemann wrote:
I would like to setup a mailserver on my debian machine that can
receive email from any host and that can be accessed by imap or pop3
(imap would be nice). I have seen some howtos on the net but they
seemed way too complicated. The howtos i saw included spamfilters,
anitivr software and page after page of config file hacking.
What i am really looking for is a simple mailserver that i can
by apt-get something and then configure by a gui/web interface (if
necessary at all). Then connect to it with my thunderbird and
So far, exim4 was installed on my sarge by default, although i dont
know what that means.
If i startup mutt with any user, it says 'no mailbox'.
This didnt ever disturb me, but now i should think of what that
Thanks for hints,
I wrote the following howto:
It includes a very basic setup of Postfix (SMTP), Dovecot (pop and
Imap), and Squirrelmail (Web e-mail).
your howto was helpful, still there is a problem left.
I can receive mail from the internet.
I can send and receive mail from and to local users.
I can NOT send mail to other hosts on the internet.
Here my /etc/postfix/main.cf:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
myhostname = ares.dyndns.biz
mydomain = dyndns.biz
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, localhost.$mydomain, $mydomain,
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
net_interfaces = all
I do login as local email@example.com via imap.
If i want to send mail to a firstname.lastname@example.org or similar i get the
message from the email client:
"An error occurred while sending mail. The mail server responded:
<email@example.com>: Relay access denied. Please verify that your
email ddress is correct in your Mail preferences and try again.".
Well, of course, the email address in my preferences is
firstname.lastname@example.org which should be correct.
What is problem here? Does the mailserver @gmx refuse my mail
because the domain is dyndns.biz, which is not to be trusted?
Is there a problem with my config?
I dont know.
mynetworks_style = subnet
Or you could take an even safer route and define the exact range of
allowed IP's. This is allready in your conf, just add more IP's
something like this:
mynetworks = 127.0.0.0/8, 192.168.1.0/24
More info can be found at:
By the way i dint understand step 4 in the Howto:
4. Add a valid root alias to /etc/postfix/aliases
There is no /etc/postfix/aliases on my sarge nor do i know what a
valid root alias is.
Well, i dont think this is the problem why i cant send out email,
create a textfile /etc/postfix/aliases and put one line in it:
save, and issue the command newaliases as root.