Hallo allemaal... waarschijnlijk heeft dit voor sommigen een hoog FAQ-gehalte, maar toch stel ik de vraag omdat:
* Ik de handleidingen heb gelezen, 3 dagen heb zitten kloten en er niet uit kom
* Ik mijn probleem niet duidelijk tegenkom in documentatie, die ik nu zoveel gezien heb dat ik er toch overheen zou lezen als het er wel stond.
Mijn probleem is simpel... Postfix start niet doordat mijn config-file niet wordt gepakt. Er zit een fout in, maar ik vindt hem niet
Ik wil een email-server, die uiteindelijk voor beumer.xs4all.nl mail gaat ontvangen (in deze config nog bart-workstation). Alle mailboxes worden virtueel als het kan. Het is de bedoeling dat deze gegevens in een MySQL-database komen te staan.
Ik ga Courier IMAP gebruiken om de gebruikers in staat te stellen hun mail te lezen. In een later stadium kan dit ook met squirrelmail gaan gebeuren (webmail).
mijn /etc/postfix/main.cf config file:
ik heb dus alleen virtuele users.
mijn /etc/postfix/gids.cf config file:
mijn /etc/postfix/uids.cf config file:
mijn /etc/postfix/mysql_virt.cf config file:
mijn /etc/postfix/master.cf config file:
Dan nu de Database:
Kan iemand aangeven wat ik hier fout doe
PLZ... Ik heb de handleidingen echt gelezen (anders kom je niet zover). Ik ben op het moment erg murf... S.O.S !
Tips zijn natuurlijk ook welkom... maar eerst het grote probleem.
Owja.... Dit is dus nog mijn workstation. De server op beumer.xs4all.nl die uiteindelijk wordt aangepast draait nog op sendmail. Ik wil eerst mijn config werkende hebben op mijn workstation voordat ik postfix operationeel op de server zet (anders kan ik geen mail ontvangen).
* Ik de handleidingen heb gelezen, 3 dagen heb zitten kloten en er niet uit kom
* Ik mijn probleem niet duidelijk tegenkom in documentatie, die ik nu zoveel gezien heb dat ik er toch overheen zou lezen als het er wel stond.
Mijn probleem is simpel... Postfix start niet doordat mijn config-file niet wordt gepakt. Er zit een fout in, maar ik vindt hem niet
Ik wil een email-server, die uiteindelijk voor beumer.xs4all.nl mail gaat ontvangen (in deze config nog bart-workstation). Alle mailboxes worden virtueel als het kan. Het is de bedoeling dat deze gegevens in een MySQL-database komen te staan.
Ik ga Courier IMAP gebruiken om de gebruikers in staat te stellen hun mail te lezen. In een later stadium kan dit ook met squirrelmail gaan gebeuren (webmail).
mijn /etc/postfix/main.cf config file:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| # LOCAL PATHNAME INFORMATION
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
# QUEUE AND PROCESS OWNERSHIP
mail_owner = postfix
#default_privs = nobody
# INTERNET HOST AND DOMAIN NAMES
myhostname = bart-workstation
mydomain = bart-workstation
# SENDING MAIL
myorigin = $myhostname
# RECEIVING MAIL
inet_interfaces = all
mydestination = $myhostname
# TRUST AND RELAY CONTROL
mynetworks = 192.168.1.0/16
# DELIVERY TO MAILBOX
home_mailbox = /var/mailboxes/
mail_spool_directory = /var/spool/mail/
# SHOW SOFTWARE VERSION OR NOT
smtpd_banner = $myhostname ESMTP $mail_name
# PARALLEL DELIVERY TO THE SAME DESTINATION
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 5
# DEBUGGING CONTROL
debug_peer_level = 2
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
# BART VIRTUALS
local_transport = virtual
virtual_mailbox_base = /
virtual_uid_maps = mysql:/etc/postfix/uids.cf
virtual_gid_maps = mysql:/etc/postfix/gids.cf
virtual_maps = mysql:/etc/postfix/mysql_virt.cf |
ik heb dus alleen virtuele users.
mijn /etc/postfix/gids.cf config file:
code:
1
2
3
4
5
6
7
| user = postfix password = DiTis1W8tWoOrD dbname = SERV_mailconfig table = users select_field = gid where_field = id hosts = localhost |
mijn /etc/postfix/uids.cf config file:
code:
1
2
3
4
5
6
7
| user = postfix password = DiTis1W8tWoOrD dbname = SERV_mailconfig table = users select_field = uid where_field = id hosts = localhost |
mijn /etc/postfix/mysql_virt.cf config file:
code:
1
2
3
4
5
6
7
| user = postfix password = DiTis1W8tWoOrD dbname = SERV_mailconfig table = users select_field = maildir where_field = id hosts = localhost |
mijn /etc/postfix/master.cf config file:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
| # ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (50)
# ==========================================================================
smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
smtp unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# The Cyrus deliver program has changed incompatibly.
#
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient |
Dan nu de Database:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| mysql> use SERV_mailconfig Database changed mysql> show tables; +---------------------------+ | Tables_in_SERV_mailconfig | +---------------------------+ | users | +---------------------------+ 1 row in set (0.00 sec) mysql> describe users; +----------+----------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------+----------------------+------+-----+---------+----------------+ | idnr | int(11) | | MUL | NULL | auto_increment | | id | varchar(128) | | PRI | | | | password | varchar(128) | | | | | | realname | varchar(128) | | | | | | uid | smallint(5) unsigned | | | 8 | | | gid | smallint(5) unsigned | | | 208 | | | home | varchar(128) | | | / | | | maildir | varchar(255) | | | | | | imapon | tinyint(3) unsigned | | | 1 | | +----------+----------------------+------+-----+---------+----------------+ 9 rows in set (0.00 sec) |
Kan iemand aangeven wat ik hier fout doe
Tips zijn natuurlijk ook welkom... maar eerst het grote probleem.
Owja.... Dit is dus nog mijn workstation. De server op beumer.xs4all.nl die uiteindelijk wordt aangepast draait nog op sendmail. Ik wil eerst mijn config werkende hebben op mijn workstation voordat ik postfix operationeel op de server zet (anders kan ik geen mail ontvangen).