To be honest, I was just guessing at what it should be in Eudora. A better question would be, how does the server expect the addresses/servers to be formatted? If the server expects a username of 'crymson' and a mail server of 'mail.mydomain.org' (which is apparently doesn't since, it rejects all connections), then I could set up Eudora properly.ryker wrote:Crymson:
I'm not familiar with Eudora, but it seems like you've configured it that crymson@mydomain.org is your username and mail.mydomain.org is the incoming/outgoing server name. It looks like you should verify in Eudora your username is just crymson and the incoming/outgoing server is mydomain.org.
pmgas wrote:Hi
I wanted to create a domain with vadddomain and got following message:vmysql: sql error[c]: MySQL server has gone away
vmysql: sql error: MySQL server has gone away
vmysql: sql error[3]: MySQL server has gone away
could not create limits table CREATE TABLE limits ( domain CHAR(64) PRIMARY KEY, maxpopaccounts INT(10) NOT NULL DEFAULT -1, maxaliases INT(10) NOT NULL DEFAULT -1, maxforwards INT(10) NOT NULL DEFAULT -1, maxautoresponders INT(10) NOT NULL DEFAULT -1, maxmailinglists INT(10) NOT NULL DEFAULT -1, diskquota INT(12) NOT NULL DEFAULT 0, maxmsgcount INT(12) NOT NULL DEFAULT 0, defaultquota INT(12) NOT NULL DEFAULT 0, defaultmaxmsgcount INT(12) NOT NULL DEFAULT 0, disable_pop TINYINT(1) NOT NULL DEFAULT 0, disable_imap TINYINT(1) NOT NULL DEFAULT 0, disable_dialup TINYINT(1) NOT NULL DEFAULT 0, disable_passwordchanging TINYINT(1) NOT NULL DEFAULT 0, disable_webmail TINYINT(1) NOT NULL DEFAULT 0, disable_relay TINYINT(1) NOT NULL DEFAULT 0, disable_smtp TINYINT(1) NOT NULL DEFAULT 0, perm_account TINYINT(2) NOT NULL DEFAULT 0, perm_alias TINYINT(2) NOT NULL DEFAULT 0, perm_forward TINYINT(2) NOT NULL DEFAULT 0, perm_autoresponder TINYINT(2) NOT NULL DEFAULT 0, perm_maillist TINYINT(4) NOT NULL DEFAULT 0, perm_quota TINYINT(2) NOT NULL DEFAULT 0, perm_defaultquota TINYINT(2) NOT NULL DEFAULT 0 )
vmysql: sql error[p]: MySQL server has gone away
Error: (vadduser) can't read domain limits
I am sure, that the mysql user is valid with the correct password. In console, i can log in with that account ...
Has anyone a solution?
thanxs, peda
Code: Select all
# Read-only DB
localhost|0|vpopmail|secret|vpopmail
# Write DB
localhost|0|vpopmail|secret|vpopmail
Code: Select all
mysql> drop database vpopmail;
Query OK, 0 rows affected (0.00 sec)
mysql> create database vpopmail;
Query OK, 1 row affected (0.00 sec)
mysql> use mysql;
Database changed
mysql> GRANT select, insert, update, delete, create, drop on vpopmail.* to vpopmail@localhost identified by 'password';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
Code: Select all
vadddomain mydomain.org password
vadduser crymson@mydomain.org password
Code: Select all
mydomain.org, Logging into POP Server, PASS [04:50:38 PM]
There has been an error transferring your mail. I said: PASS <shhhh! Don't tell anyone.> and then the POP server (crymson@mail.mydomain.org) said: ERR Login failed.
Code: Select all
# Read-only DB
localhost|0|vpopmail|secret|vpopmail
# Write DB
localhost|0|vpopmail|secret|vpopmail Well, I changed the stuff you mentioned, but I still can't log in.ryker wrote:Crymson:
I've been struggling with this for a while and I think I have it working, but not like the how to suggests. I had to make 3 changes to be able to log in at all.
1. In /etc/courier-imap/imapd leave AUTHMODULES="authdaemon"
2. In /etc/courier-imap/pop3d leave AUTHMODULES="authdaemon"
3. In /etc/courier-imap/authdaemonrc set authmodulelist="authpam"
I wasn't able to log in with authvchkpw. I've set the group and permissions per the how to instructions, but it wouldn't work. Now it works fine.
I'm new to setting up an email server so I'm not sure what the difference is between authpam and authvchkpwd. Could someone enlighten me on this?
At least I can log in now!
Crymson wrote:My guess is, you didn't set a password for the vpopmail user in MySQL when you created the vpopmail database. In the tutorial, it talks about setting the privileges for the user using 'Your Password' or whatever. Whatever you type in there, must match what is in the /etc/vpopmail.conf file. I believe it is case sensitive. Try that, and you should be ok.larry wrote:Hi guys,
I am installing qmail, mysql, vpopmail, courier-imap... I was following the guide on ths website:
http://www.gentoo.org/doc/en/qmail-howto.xml
When I change the password in /etc/vpopmail.conf, and add the database vpopmail as per the instructions, I get this error with vpopmail cmmands like vadddomain my.domain.com:
but when I switch back to the default password "secret" and remake the vpopmail database, everything works fine. Can somebody give me a clue on how to fix this? Thanks.could not connect to mysql update server Access denied for user: 'vpopmail@localhost' (Using password: YES)
I tried following all the steps. I re-emerged the latest vpopmail and recreated the vpopmail database. I can login into the vpopmail database with the vpopmail password. This is what I get:vmysql: sql error[3]: Table 'vpopmail.vpopmail' doesn't exist
Error: User's directory already exists?
Thanks for the help.mysql> show tables;
+--------------------+
| Tables_in_vpopmail |
+--------------------+
| dir_control |
| limits |
| vlog |
+--------------------+
3 rows in set (0.00 sec)
mysql>
one thing I forgot to mention is I'm using ssl so I actually edited imapd-ssl and pop3d-ssl as well. What output do you want? Do you want me to post the complete contents of the files I changed?Crymson wrote:What syntax are you using? Can you log in via telnet, and post a copy of the output here? ...
I'd like to be using SSL, but I can't get the SSL to work, so until it does work without, I'm not even going to screw with it. The output I'd like to see is this:ryker wrote:one thing I forgot to mention is I'm using ssl so I actually edited imapd-ssl and pop3d-ssl as well. What output do you want? Do you want me to post the complete contents of the files I changed?Crymson wrote:What syntax are you using? Can you log in via telnet, and post a copy of the output here? ...
Let me know what you need and I will post it for you.
Code: Select all
telnet mail.yourdomain.com 110
+OK Hello There
USER <user>
+OK Password required
PASS <pass>
???
Code: Select all
-ERR Login failed
Code: Select all
telnet mail.mydomain.org 110
+OK Hello there
USER crymson
+OK Password required
PASS password
-ERR Login failed
Code: Select all
alberts4 root # telnet something.dyndns.org 110
Trying 4.15.110.4...
Connected to something.dyndns.org.
Escape character is '^]'.
+OK <5169.1085485785@something.dyndns.org>
USER alberts
+OK
PASS <mypassword>
+OK
ls
-ERR unimplemented
help
-ERR unimplemented
HELP
-ERR unimplemented
USER
-ERR unimplemented
dir
-ERR unimplemented
quit
+OK
Connection closed by foreign host.
-----------------
alberts4 root # telnet something.dyndns.org 995
Trying 4.15.110.4...
Connected to something.dyndns.org.
Escape character is '^]'.
USER alberts
Connection closed by foreign host.Code: Select all
May 25 06:56:25 albertsrouter pop3d-ssl: Connection, ip=[4.15.109.169]
May 25 06:56:25 something pop3d-ssl: LOGIN, user=alberts, ip=[4.15.109.169]
May 25 06:56:26 something pop3d-ssl: LOGOUT, user=alberts, ip=[4.15.109.169], top=0, retr=115268
May 25 06:45:45 something imapd-ssl: Connection, ip=[4.15.109.169]
May 25 06:45:45 something imapd-ssl: LOGIN, user=alberts, ip=[4.15.109.169], protocol=IMAPCode: Select all
Code Listing 4.2: Out-of-the-box setup for POP3/SSL
# cd /etc/courier-imap
# nano authdaemonrc
(Set the authmodulelist variable to only contain "authvchkpw")
# nano pop3d.cnf
(Edit the [ req_dn ] section)
# mkpop3dcert
# rc-update add courier-pop3d-ssl default
# /etc/init.d/courier-pop3d-ssl start
Code Listing 4.3: Out-of-the-box setup for IMAP/SSL
# cd /etc/courier-imap
# nano imapd.cnf
(Edit the [ req_dn ] section)
# mkimapdcert
# rc-update add courier-imapd-ssl default
# /etc/init.d/courier-imapd-ssl start
Your mail client should now be able to login to the host running courier and retrieve mail for the virtual host. In my case, I am now able to login with the username 'vapier@wh0rd.org' and password 'vappw'.
5. qmail (talking to the world)
Let's get SMTP up and running while making sure we don't create another spam hole for people to abuse.
Code Listing 5.1: Start qmail SMTP service
# cd /var/qmail/control/
# nano conf-smtpd
(Uncomment the SMTP-AUTH variables and set QMAIL_SMTP_CHECKPASSWORD to /var/vpopmail/bin/vchkpw)
# nano servercert.cnf
(Edit the [ req_dn ] section)
# mkservercert
# cd /service
# ln -s /var/qmail/supervise/qmail-smtpd qmail-smtpd
# /etc/init.d/svscan restartCode: Select all
> nano -w /etc/courier-imap/imapd-ssl
IMAPDSSLSTART=YES
> nano -w /etc/courier-imap/pop3d-ssl
POP3DSSLSTART=YES
> rc-update add courier-imapd-ssl default
> rc-update add courier-pop3d-ssl default
> /etc/init.d/courier-imapd-ssl start
> /etc/init.d/courier-pop3d-ssl startCode: Select all
AUTHMODULES="authvchkpw"Code: Select all
AUTHMODULES="authdaemon"Code: Select all
authmodulelist="authpam"Code: Select all
/etc/init.d/svscan restart
/etc/init.d/authdaemond restartThat's probably because you're allowing your local network to relay mail, which is what the HOWTO tells you to do.petterg wrote:I have the same problem with smtp-auth as I've had using the official howto and the old howto written by sabrex.
I've followed every single step in this howto.
Here's the thing, using mozilla mailclient:
If I set up the client to use a username, it will ask for password. If I provide a wrong user/password combination, it will not send mail. If I provide a correct user/password it will send mail. So far so good.
However, if I setup the client to NOT provide any username I'm also able to send mail!
Code: Select all
From step 8 of the new howto:
> nano -w /etc/tcp.smtp
# Qmail-Scanner disabled for mail from localhost, relay allowed
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-queue"
# Qmail-Scanner enabled (virus only) for mail from local network, relay allowed
192.168.1.:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
# Qmail-Scanner enabled (virus and spam) for mail from external internet, relay denied
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
save tcp.smtp and then:
> tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
> chmod 644 /etc/tcp.smtp*larry wrote:Crymson wrote:OK, I fixed this by manually removing the domains from /var/vpopmail/domains. Then I had to use the vdeldomain to remove them from the database. This gave some errors, like "could not access directory /var/vpopmail/domains/my.domain but then I could do vadddomain and vadduser without any more errors.larry wrote:Hi guys,Thanks for the help.vmysql: sql error[3]: Table 'vpopmail.vpopmail' doesn't exist
Error: User's directory already exists?
Ah! Thats it! Thank you!sabrex wrote:That's probably because you're allowing your local network to relay mail, which is what the HOWTO tells you to do.