Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't make mailserver work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Dreadfull2007
n00b
n00b


Joined: 28 Feb 2007
Posts: 54

PostPosted: Tue Apr 17, 2007 8:52 pm    Post subject: can't make mailserver work Reply with quote

i would REALLY appreciate if anyone could point me a good tutorial for making a mailserver
all i need is postfix + postfixadmin (so yes .. storing in mysql) supporting POP3/IMAP (for outlook/squirrelmail for example) and that's all .. tryied about 3 tutorials but had different problems for each one :(

P.S: what should i use, cyrus-sasl or courier ?
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Wed Apr 18, 2007 1:12 am    Post subject: Re: can't make mailserver work Reply with quote

Dreadfull2007 wrote:
i would REALLY appreciate if anyone could point me a good tutorial for making a mailserver
all i need is postfix + postfixadmin (so yes .. storing in mysql) supporting POP3/IMAP (for outlook/squirrelmail for example) and that's all .. tryied about 3 tutorials but had different problems for each one :(
Where did you had problems? I can help you with the setup if you want.

Dreadfull2007 wrote:
P.S: what should i use, cyrus-sasl or courier ?
Cyrus-SASL is only a library. Courier (in your case) is a IMAP server. They are not the same. Cyrus has as well a IMAP server. But that one is not called cyrus-sasl.


// SteveB
Back to top
View user's profile Send private message
Dreadfull2007
n00b
n00b


Joined: 28 Feb 2007
Posts: 54

PostPosted: Wed Apr 18, 2007 5:00 am    Post subject: Reply with quote

IMAP never worked ... only POP3 ... now nothing (after the last tutorial .. tryied to do it with mysql not with system users)
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Wed Apr 18, 2007 10:18 pm    Post subject: Reply with quote

would this post help you?
Back to top
View user's profile Send private message
Dreadfull2007
n00b
n00b


Joined: 28 Feb 2007
Posts: 54

PostPosted: Thu Apr 19, 2007 6:13 am    Post subject: Reply with quote

i was hoping you will reply.
well .. still not working (can't login).. maybe i should just post my configs and hope something is wrong and someone will see :)

/etc/courier/authlib/authdaemonrc
Code:

authmodulelist="authmysql authpam"
authmodulelistorig="authuserdb authpam authshadow authcustom authpipe"
daemons=5
authdaemonvar=/var/lib/courier/authdaemon
DEBUG_LOGIN=0
DEFAULTOPTIONS=""
LOGGEROPTS=""

/etc/courier/authlib/authmysqlrc
Code:

MYSQL_CRYPT_PWFIELD     password
MYSQL_DATABASE          postfix
MYSQL_GID_FIELD         '207'
MYSQL_HOME_FIELD        '/var/vmail'
MYSQL_LOGIN_FIELD       username
MYSQL_MAILDIR_FIELD     maildir
MYSQL_NAME_FIELD        name
MYSQL_OPT               0
MYSQL_PASSWORD          ****
MYSQL_SERVER            localhost
MYSQL_UID_FIELD         '207'
MYSQL_USERNAME          mailsql
MYSQL_USER_TABLE        mailbox

/etc/courier-imap/authdaemond.conf
Code:

AUTHDAEMOND="authdaemond.plain"

/etc/courier-imap/authdaemondrc
Code:

authmodulelist="authmysql authpam"

/etc/courier-imap/imapd
Code:

ADDRESS=0
PORT=143
MAXDAEMONS=40
MAXPERIP=4
PIDFILE=/var/run/imapd.pid
TCPDOPTS="-nodnslookup -noidentlookup"
LOGGEROPTS="-name=imapd"
IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
IMAP_KEYWORDS=1
IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
IMAP_PROXY=0
IMAP_PROXY_FOREIGN=0
IMAP_IDLE_TIMEOUT=60
IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
IMAP_DISABLETHREADSORT=0
IMAP_CHECK_ALL_FOLDERS=0
IMAP_OBSOLETE_CLIENT=0
IMAP_UMASK=022
IMAP_ULIMITD=65536
IMAP_USELOCKS=1
IMAP_SHAREDINDEXFILE=/etc/courier-imap/shared/index
IMAP_ENHANCEDIDLE=0
IMAP_TRASHFOLDERNAME=Trash
IMAP_EMPTYTRASH=Trash:7
IMAP_MOVE_EXPUNGE_TO_TRASH=0
SENDMAIL=/usr/sbin/sendmail
HEADERFROM=X-IMAP-Sender
IMAPDSTART=NO
MAILDIRPATH=Maildir
MAILDIR=.maildir
MAILDIRPATH=.maildir
PRERUN=
LOGINRUN=

/etc/courier-imap/pop3d
Code:

PIDFILE=/var/run/pop3d.pid
MAXDAEMONS=40
MAXPERIP=4
POP3AUTH="LOGIN"
POP3AUTH_ORIG="PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256"
POP3AUTH_TLS=""
POP3AUTH_TLS_ORIG="LOGIN PLAIN"
POP3_PROXY=0
PORT=110
ADDRESS=0
TCPDOPTS="-nodnslookup -noidentlookup"
LOGGEROPTS="-name=pop3d"
POP3DSTART=YES
MAILDIRPATH=Maildir
MAILDIR=.maildir
MAILDIRPATH=.maildir
PRERUN=
LOGINRUN=

/etc/courier-imap/pop3d-ssl
Code:

SSLPORT=995
SSLADDRESS=0
SSLPIDFILE=/var/run/pop3d-ssl.pid
SSLLOGGEROPTS="-name=pop3d-ssl"
POP3DSSLSTART=NO
POP3_STARTTLS=YES
POP3_TLS_REQUIRED=0
COURIERTLS=/usr/sbin/couriertls
TLS_PROTOCOL=SSL3
TLS_STARTTLS_PROTOCOL=TLS1
TLS_CERTFILE=/etc/courier-imap/pop3d.pem
TLS_VERIFYPEER=NONE
TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
TLS_CACHESIZE=524288
MAILDIRPATH=Maildir
MAILDIR=.maildir
MAILDIRPATH=.maildir

/etc/postfix/main.cf
Code:

myhostname = csworld.ro
mydomain = csworld.ro
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks = 89.37.93.0/24, 127.0.0.0/8

# attachement filtering
mime_header_checks = regexp:/etc/postfix/mime_header_checks.regexp

# Size settings
message_size_limit = 20480000
mailbox_size_limit = 102400000

# SASL settings
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain =

virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:207
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 102400000
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 207
virtual_transport = virtual
virtual_uid_maps = static:207

smtpd_recipient_restrictions =
       reject_invalid_hostname,
       reject_non_fqdn_recipient,
       reject_non_fqdn_sender,
       reject_unknown_sender_domain,
       reject_unknown_recipient_domain,
       reject_unauth_pipelining,
       permit_mynetworks,
       permit_sasl_authenticated,
       reject_unlisted_recipient,
       check_policy_service inet:127.0.0.1:10030,
       reject_unauth_destination,
       permit

/etc/postfix/master.cf
Code:

smtp      inet  n       -       n       -       -       smtpd -vv
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local -vv
virtual   unix  -       n       n       -       -       virtual -vv
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/lib/cyrus/deliver -e -m ${extension} ${user}
cyrus     unix  -       n       n       -       -       pipe
  flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m ${extension} ${user}
virt-cyrus     unix  -       n       n       -       -       pipe
  flags=hu user=cyrus argv=/usr/lib/cyrus/deliver -e -r ${sender} -m ${recipient} ${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
smtp-amavis unix - - n - 2 lmtp
 -o smtp_data_done_timeout=1200
127.0.0.1:10025 inet n - n - - smtpd
 -o content_filter=
 -o local_recipient_maps=
 -o relay_recipient_maps=
 -o smtpd_restriction_classes=
 -o smtpd_client_restrictions=
 -o smtpd_helo_restrictions=
 -o smtpd_sender_restrictions=
 -o smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,reject
 -o mynetworks=127.0.0.0/8
 -o mynetworks_style=host
 -o strict_rfc821_envelopes=yes
 -o smtpd_error_sleep_time=0
pre-cleanup unix n - n - 0 cleanup
 -o virtual_alias_maps=
 -o canonical_maps=
 -o sender_canonical_maps=
 -o recipient_canonical_maps=
 -o masquerade_domains=
cleanup unix n - n - 0 cleanup
 -o mime_header_checks=
 -o nested_header_checks=
 -o body_checks=
 -o header_checks=
smtp inet n - n - - smtpd
 -o cleanup_service_name=pre-cleanup
pickup fifo n - n 60 1 pickup
 -o cleanup_service_name=pre-cleanup

/etc/postfix/mysql-aliases.cf
Code:

# mysql-aliases.cf
user = mailsql
password = ***
dbname = postfix
table = alias
select_field = destination
where_field = alias
hosts = unix:/var/run/mysqld/mysqld.sock

/etc/postfix/mysql-aliases.cf
Code:

# mysql-relocated.cf
user = mailsql
password = ***
dbname = postfix
table = relocated
select_field = destination
where_field = email
hosts = unix:/var/run/mysqld/mysqld.sock

/etc/postfix/mysql-transport.cf
Code:

# mysql-transport.cf
user = mailsql
password = ***
dbname = postfix
table = transport
select_field = destination
where_field = domain
hosts = unix:/var/run/mysqld/mysqld.sock

/etc/postfix/mysql-virtual-gid.cf
Code:

#myql-virtual-gid.cf
user = mailsql
password = ***
dbname = postfix
table = users
select_field = gid
where_field = email
additional_conditions = and postfix = 'y'
hosts = unix:/var/run/mysqld/mysqld.sock

/etc/postfix/mysql-virtual-maps.cf
Code:

#myql-virtual-maps.cf
user = mailsql
password = ***
dbname = postfix
table = users
select_field = maildir
where_field = email
additional_conditions = and postfix = 'y'
hosts = unix:/var/run/mysqld/mysqld.sock

/etc/postfix/mysql-virtual-uid.cf
Code:

# mysql-virtual-uid.cf
user = mailsql
password = ***
dbname = postfix
table = users
select_field = uid
where_field = email
additional_conditions = and postfix = 'y'
hosts = unix:/var/run/mysqld/mysqld.sock

/etc/postfix/mysql-virtual.cf
Code:

# mysql-virtual.cf
user = mailsql
password = ***
dbname = postfix
table = virtual
select_field = destination
where_field = email
hosts = unix:/var/run/mysqld/mysqld.sock

/etc/postfix/mysql_relay_domains_maps.cf
Code:

user = mailsql
password = ***
hosts = localhost
dbname = postfix
query = SELECT domain FROM domain WHERE domain='%s' AND backupmx = '1' AND active = '1'

/etc/postfix/mysql_virtual_alias_maps.cf
Code:

user = mailsql
password = ***
hosts = localhost
dbname = postfix
query = SELECT goto FROM alias WHERE address='%s' AND active = '1'

/etc/postfix/mysql_virtual_domains_maps.cf
Code:

user = mailsql
password = ***
hosts = localhost
dbname = postfix
query = SELECT description FROM domain WHERE domain='%s' AND active = '1'

/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
Code:

user = mailsql
password = ***
hosts = localhost
dbname = postfix
query = SELECT quota FROM mailbox WHERE username='%s' AND active = '1'

/etc/postfix/mysql_virtual_mailbox_maps.cf
Code:

user = mailsql
password = ***
hosts = localhost
dbname = postfix
query = SELECT maildir FROM mailbox WHERE username='%s' AND active = '1'



yes .. there could be more files than needed .. but as i said .. followed many docs and each was telling me to do *something*

this is my export from mysql (maybe this could be wrong too)

Code:

-- phpMyAdmin SQL Dump
-- version 2.8.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 19, 2007 at 09:16 AM
-- Server version: 5.0.38
-- PHP Version: 5.2.1-pl3-gentoo
--
-- Database: `postfix`
--

-- --------------------------------------------------------

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `username` varchar(255) NOT NULL default '',
  `password` varchar(255) NOT NULL default '',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `active` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`username`),
  KEY `username` (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Admins';

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` (`username`, `password`, `created`, `modified`, `active`) VALUES ('dreadfull@csworld.ro', '$1$dc655516$5guAmAn4jC3T9eKD988jT1', '2007-04-17 23:42:45', '2007-04-19 08:20:01', 1);

-- --------------------------------------------------------

--
-- Table structure for table `alias`
--

CREATE TABLE `alias` (
  `address` varchar(255) NOT NULL default '',
  `goto` text NOT NULL,
  `domain` varchar(255) NOT NULL default '',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `active` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`address`),
  KEY `address` (`address`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Aliases';

--
-- Dumping data for table `alias`
--

INSERT INTO `alias` (`address`, `goto`, `domain`, `created`, `modified`, `active`) VALUES ('dreadfull@csworld.ro', 'dreadfull@csworld.ro', 'csworld.ro', '2007-04-17 23:40:41', '2007-04-17 23:40:41', 1),
('everyone', '', 'domain.tld', '2007-04-17 23:42:05', '2007-04-17 23:42:05', 1);

-- --------------------------------------------------------

--
-- Table structure for table `domain`
--

CREATE TABLE `domain` (
  `domain` varchar(255) NOT NULL default '',
  `description` varchar(255) NOT NULL default '',
  `aliases` int(10) NOT NULL default '0',
  `mailboxes` int(10) NOT NULL default '0',
  `maxquota` int(10) NOT NULL default '0',
  `transport` varchar(255) default NULL,
  `backupmx` tinyint(1) NOT NULL default '0',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `active` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`domain`),
  KEY `domain` (`domain`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Domains';

--
-- Dumping data for table `domain`
--

INSERT INTO `domain` (`domain`, `description`, `aliases`, `mailboxes`, `maxquota`, `transport`, `backupmx`, `created`, `modified`, `active`) VALUES ('csworld.ro', 'No Description', 0, 0, 0, 'virtual', 0, '2007-04-17 23:40:14', '2007-04-17 23:40:14', 1);

-- --------------------------------------------------------

--
-- Table structure for table `domain_admins`
--

CREATE TABLE `domain_admins` (
  `username` varchar(255) NOT NULL default '',
  `domain` varchar(255) NOT NULL default '',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `active` tinyint(1) NOT NULL default '1',
  KEY `username` (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Domain Admins';

--
-- Dumping data for table `domain_admins`
--

INSERT INTO `domain_admins` (`username`, `domain`, `created`, `active`) VALUES ('dreadfull@csworld.ro', '', '2007-04-19 08:20:01', 1);

-- --------------------------------------------------------

--
-- Table structure for table `log`
--

CREATE TABLE `log` (
  `timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
  `username` varchar(255) NOT NULL default '',
  `domain` varchar(255) NOT NULL default '',
  `action` varchar(255) NOT NULL default '',
  `data` varchar(255) NOT NULL default '',
  KEY `timestamp` (`timestamp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Log';

--
-- Dumping data for table `log`
--

INSERT INTO `log` (`timestamp`, `username`, `domain`, `action`, `data`) VALUES ('2007-04-17 23:40:41', 'postmaster@change-this-to-your.domain.tld (89.37.93.67)', 'csworld.ro', 'create mailbox', 'dreadfull@csworld.ro'),
('2007-04-19 08:19:48', 'postmaster@change-this-to-your.domain.tld (89.37.93.67)', 'csworld.ro', 'edit mailbox', 'dreadfull@csworld.ro');

-- --------------------------------------------------------

--
-- Table structure for table `mailbox`
--

CREATE TABLE `mailbox` (
  `username` varchar(255) NOT NULL default '',
  `password` varchar(255) NOT NULL default '',
  `name` varchar(255) NOT NULL default '',
  `maildir` varchar(255) NOT NULL default '',
  `quota` int(10) NOT NULL default '0',
  `domain` varchar(255) NOT NULL default '',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `active` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`username`),
  KEY `username` (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Mailboxes';

--
-- Dumping data for table `mailbox`
--

INSERT INTO `mailbox` (`username`, `password`, `name`, `maildir`, `quota`, `domain`, `created`, `modified`, `active`) VALUES ('dreadfull@csworld.ro', '$1$be6d5afc$noTbKhS32iXpp6A1/ZpcA/', 'Dreadfull', 'dreadfull@csworld.ro/', 0, 'csworld.ro', '2007-04-17 23:40:41', '2007-04-19 08:19:48', 1);

-- --------------------------------------------------------

--
-- Table structure for table `vacation`
--

CREATE TABLE `vacation` (
  `email` varchar(255) NOT NULL default '',
  `subject` varchar(255) NOT NULL default '',
  `body` text NOT NULL,
  `cache` text NOT NULL,
  `domain` varchar(255) NOT NULL default '',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `active` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`email`),
  KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Vacation';

--
-- Dumping data for table `vacation`
--



Last edited by Dreadfull2007 on Thu Apr 19, 2007 8:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Apr 19, 2007 7:44 am    Post subject: Reply with quote

Allow me to ask: What version of Postfix are you using?
Back to top
View user's profile Send private message
Dreadfull2007
n00b
n00b


Joined: 28 Feb 2007
Posts: 54

PostPosted: Thu Apr 19, 2007 8:00 am    Post subject: Reply with quote

ah, forgot to mention that, sorry
postfix-2.3.6
courier-authlib-0.58
courier-imap-4.0.6-r2
postfixadmin-2.1.0
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu Apr 19, 2007 11:54 am    Post subject: Reply with quote

I'd start off by deleting any /etc/postfix/mysql_* file that isn't actually listed in your /etc/postfix/main.cf. You've got two separate sets of mysql virtual configs going on there. And on top of that one is for Postfix 2.1 and earlier and one is for 2.2 and better. The ones actually listed in your main.cf as of right now are actually right.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
nitbix
n00b
n00b


Joined: 10 Jul 2006
Posts: 55
Location: Suffolk (UK)

PostPosted: Thu Apr 19, 2007 2:47 pm    Post subject: Reply with quote

I'm guessing you don't have any important data stored yet because it's not working right? In such case maybe the easiest thing to do would be to start from scratch. I suggest you follow http://gentoo-wiki.com/HOWTO_Setup_a_Virtual_Postfix/Courier_Mail_System_with_PostfixAdmin
_________________
.:nitbix:.
Back to top
View user's profile Send private message
Dreadfull2007
n00b
n00b


Joined: 28 Feb 2007
Posts: 54

PostPosted: Thu Apr 19, 2007 7:16 pm    Post subject: Reply with quote

tryied that .. seems an uncompleted/partial howto .. i'm guessing that the problem is in mysql now ..

1) got "cannot chdir ..." ... had maildir as email ..
then changed maildir to "/var/vmail"
2) got "-ERR Maildir invalid (no 'cur' directory)" when tryied to login ..

what does 'cur' mean ?

got sick of this
is there ANY COMPLETE howto for a working mail server with postfix+postfixadmin ? don't care about the rest, all i want is postfix+postfixadmin on sql.
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Apr 19, 2007 8:23 pm    Post subject: Reply with quote

Dreadfull2007 wrote:
tryied that .. seems an uncompleted/partial howto .. i'm guessing that the problem is in mysql now ..

1) got "cannot chdir ..." ... had maildir as email ..
then changed maildir to "/var/vmail"
2) got "-ERR Maildir invalid (no 'cur' directory)" when tryied to login ..

what does 'cur' mean ?

It means that you don't have the cur directory inside the maildir directory for the user. You can fix that in two ways. Manually creating that directory or run "maildirmake" to create the needed directories.

Dreadfull2007 wrote:
got sick of this
is there ANY COMPLETE howto for a working mail server with postfix+postfixadmin ? don't care about the rest, all i want is postfix+postfixadmin on sql.

The problem I see is that all howto's I know are referring to old Postfix installations and stuff have changed with Postfix >= 2.2.

If you want, I could log into your system with SSH and fix everything for you. No problem. Would probably take me 30 minutes or so.

// SteveB
Back to top
View user's profile Send private message
Dreadfull2007
n00b
n00b


Joined: 28 Feb 2007
Posts: 54

PostPosted: Thu Apr 19, 2007 8:33 pm    Post subject: Reply with quote

any YM/MSN id ?

it appears i can login to POP3/IMAP now .. but no smtp response when trying to send an email .. lol it's like "there is no smtp installed" :)

all i got about smtp in /var/log/messages was:
Code:

Apr 20 00:12:33 csworld postfix/smtpd[32498]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Apr 20 00:12:33 csworld postfix/smtpd[32498]: warning: problem talking to service rewrite: Broken pipe
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Apr 19, 2007 11:39 pm    Post subject: Reply with quote

Dreadfull2007 wrote:
any YM/MSN id ?
check PM.

Dreadfull2007 wrote:
it appears i can login to POP3/IMAP now ..
perfect!

Dreadfull2007 wrote:
but no smtp response when trying to send an email .. lol it's like "there is no smtp installed" :)

all i got about smtp in /var/log/messages was:
Code:

Apr 20 00:12:33 csworld postfix/smtpd[32498]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Apr 20 00:12:33 csworld postfix/smtpd[32498]: warning: problem talking to service rewrite: Broken pipe


Error on the rewrite transport? Well... time to check your posted main.cf and master.cf. Give me some minutes.
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Apr 19, 2007 11:50 pm    Post subject: Reply with quote

Phuuu.... now I see it. You have way way to mouch lookup tables giving you the same result. You could probably reduce some of them and add others.

Anyway... your main.cf misses (from my viewpoint):
Code:
proxy_read_maps =
   $virtual_alias_maps
   $virtual_mailbox_domains
   $virtual_mailbox_maps

alias_maps =
   hash:/etc/mail/aliases

alias_database =
   hash:/etc/mail/aliases

local_recipient_maps =
   $alias_maps
   unix:passwd.byname



There are more stuff missing but maybe you forgot to post it? Btw: what do you have on port 10030 listening?


// SteveB
Back to top
View user's profile Send private message
Dreadfull2007
n00b
n00b


Joined: 28 Feb 2007
Posts: 54

PostPosted: Fri Apr 20, 2007 5:15 am    Post subject: Reply with quote

saw about that policy on 127.0.0.1:10030 .. but don't know anything about it ... must be pasted from howto :|
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
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