Email Server

Hi Guys,
I set up a Mail server on a SUSE10.3 box, i configured postfix as my MTA Dovecot and Squirrelmail, the problem im facing are
1.Im not conversant with the new dovecot Configs, the only thing i changed in the dovecot config file was the

protocols = imap pop3

and also

pop3_uidl_format = %08Xu%08Xv

. i haven’t touched anything else coz im not really sure.
2. after installing everything and testing, i found out that from my logs, even emails to local accounts (configured on the same server) first go through the relay client which is configured in my postfix, is anything wrong with my configs? coz from my old server all emails to local accounst are relayed localy, its only those going out that are relayed through the configured relay Client.
This is my Postfix Config:

alias_maps = hash:/etc/aliases
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
disable_mime_output_conversion = no
home_mailbox = maildir/
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = /usr/bin/procmail -a $EXETENSION
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 1024000000
mydestination = $myhostname, localhost.$mydomain
mydomain = xxx.co.ug
myhostname = xxx.xxx.co.ug
mynetworks = 10.144.82.0/24, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
recipient_delimiter = +
relay_domains = $mydestination, xxx.co.ug
relayhost = mail1.starcom.co.ug
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual

.
can anyone help on this?
Kind Rgds To all

nellyneils wrote:

> I set up a Mail server on a SUSE10.3 box, i configured postfix as my
> MTA Dovecot and Squirrelmail, the problem im facing are

> 1.Im not conversant with the new dovecot Configs, the only thing i
> changed in the dovecot config file was the
> Code:
> --------------------
> protocols = imap pop3
> --------------------
> and also
> Code:
> --------------------
> pop3_uidl_format = %08Xu%08Xv
>
> --------------------

And what is not working? You can’t even connect with the pop3 server from
any e-mail clients or webmail? Are you getting any error message (timeout,
login error…)? :-?

> 2. after installing everything and testing, i found out that from my
> logs, even emails to local accounts (configured on the same server)
> first go through the relay client which is configured in my postfix,

Well, I think “mydestination” controls that. So maybe your domain is no
being properly recognized as local and so routed to the “relayhost” you
have setup.

Try adding $mydomain" here:

mydestination = $myhostname, localhost.$mydomain, $mydomain

And restart postfix (rcpostfix restart).

Greetings,


Camaleón

Try adding $mydomain" here:

mydestination = $myhostname, localhost.$mydomain, $mydomain

And restart postfix (rcpostfix restart).

U r a life saver, i had really missed that config out.
I added it and everything seems perfect now.
Thank you very much, let me concentrate on Securing the server, dont know much abt IPTABLES though.
Rgds.