Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
mails
View previous topic :: View next topic  
Author Message
vince77
Guest





PostPosted: Sat Jan 26, 2008 6:11 am    Post subject: mails Reply with quote

hi ,
im litle lost where are the user names ,pwors and enail to be pop3 ftech enetred ples?
also here to setup squirrel mail info ?
thx

vincent
Back to top
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sat Jan 26, 2008 12:00 pm    Post subject: Reply with quote

I don't know what you want to config but a simple mail server whould be:

dovecot.conf
Code:
mail_location = maildir:~/Maildir
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
protocols = imap pop3 imaps
listen = [::]
ssl_disable = no
disable_plaintext_auth = no
login_user = dovecot
mail_log_prefix = "%Us(%u):%i:%h "
pop3_uidl_format = %v.%u
protocol imap {
}

protocol pop3 {
}
protocol lda {
postmaster_address = postmaster@sms.org
}
auth_verbose = yes
auth_debug = yes
auth default {
  mechanisms = plain
  userdb passwd {
  }
  passdb shadow {
  }
user = root
}
dict {
}
plugin {
}

ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem

main.cf (Postfix)
Code:
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases, nis:mail.aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin/
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
local_recipient_maps = $alias_maps unix:passwd.byname $virtual_mailbox_maps
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/sbin/mailq
manpage_directory = /usr/man
milter_default_action = accept
mydestination = $mydomain, $myhostname, localhost.$mydomain,
mydomain = org
myhostname = sms.org
newaliases_path = /usr/sbin/newaliases
queue_directory = /var/spool/postfix
relay_domains = $mydomain, $virtual_mailbox_domains
sample_directory = /etc/postfix/sample
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_use_tls = no
smtpd_milters = unix:/var/run/clamav-milter/milter.sock
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, defer
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_use_tls = no
unknown_local_recipient_reject_code = 550
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf,ldap:/etc/postfix/ldap-maillists.cf


Mail users are UNIX users and instead of mailbox (/var/spool/mail/%u) they have Maildirs ( ~/Maildir).

You can add users via Webmin or by shell with the command adduser or useradd...

Make an alias of root to a user in order to get mails with squirrelmail at /etc/mail/aliases e.g.
root: someuser
and after type /usr/sbin/newaliases

You can upgrade squirrelmail to version 1.4.13 from here

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
vincentz77
Junior Member


Joined: 17 Dec 2007
Posts: 3

PostPosted: Sat Jan 26, 2008 12:09 pm    Post subject: Reply with quote

hello
in fact in want to setup email addresses to be fetched by sms and collected by lan users through their emails clients . thanks for the code list. im just nor used to linux and though that through webmin the emails adresses / passwords and users those could be added .
sorry if im asking question the wrong way just too windows slave minded .
kind regards
vincent
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sat Jan 26, 2008 4:27 pm    Post subject: Reply with quote

You have to be more specific to give you examples, for instance, what type of mail accounts...

P.S. Please use one account, and tell me which one to delete.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
vincentz77
Junior Member


Joined: 17 Dec 2007
Posts: 3

PostPosted: Sun Jan 27, 2008 1:41 pm    Post subject: Reply with quote

hello
ill use vincentz77 , so del the vince one ..

so scenario as follows : sms will collect all emails under accord-knits.mg
all under pop3 .in fact our office main server collects all email but our remote factory ( yes i work in textile zone) will hv sms as server to collect the mails from main server under pop3 , we hv 15 users to be under sms. so where to do it setup up the pop3 accounts and user accounts .
I hv already setup other servers under sms but pop3 ones i need yr help

thanks and regards from Madagascar ..
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sun Jan 27, 2008 6:32 pm    Post subject: Reply with quote

Any reason why your users doesn't get the mails from your main office's server directly with their clients?

Use the above configs for dovecot and postfix...
Create 15 users with the command adduser
You can use fetchmail to get the messages from your pop3 server...
Go to webmin interface under servers/fetchmail and add your pop3 info for every user, e.g /home/someuser/.fetchmailrc should look something like
Code:
poll mail.accord-knits.mg
        proto pop3
        user "yourusername"
        pass "yourpassword"
        keep

Do that from webmin it's easier.
You can set a cron job in the same page...

All users can manage their mails from squirrelmail...
To rewrite the headers use canonical_maps on postfix in case you have a different hostname.

I think that is what you want...

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
vincentz77
Junior Member


Joined: 17 Dec 2007
Posts: 3

PostPosted: Mon Jan 28, 2008 8:05 am    Post subject: Reply with quote

well in madagascar, car we dont hv adsl fast lines yet so all is Wimax or vsat with satellite outbound international access and being very expensive ,i want to use a server to collect emails at a regular interval .also remote office is 200 kms away.

will give it a try and revert with results ...

anyway I can still bug you Smile
hv a nice day

brgds
vincent
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional