[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cómo montar servidor de correo



Cierto día Tue, 10 Aug 2004 23:57:37 +0200
alguien expulsó estas perlas:


> Cada vez el mismo mensaje de error: el usuario no tiene $HOME/Maildir
> Gracias. Un saludo
> 

tienes que enviar un mensaje al usuario para que se cree esa carpeta. Puedes hacerlo manualmente asi

cito:


 As you do not have an MX entry (mail exchanger - part of the DNS zone) you need to 'deliver' the email manually. Establish an SMTP connection to your mail server (telnet servername 25) and enter the SMTP commands written on the right side:
Server	You

220 myserver ESMTP Postfix (Debian/GNU)

	 
 	

ehlo workaround.org

250-mailtest
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250-AUTH=LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250 8BITMIME

	 
 	

mail from:<test@workaround.org>

250 Ok

	 
 	

rcpt to:<user@virtual.test>

250 Ok

	 
 	

data

354 End data with <CR><LF>.<CR><LF></LF></CR></LF></CR>

	 
 	

This is a test email.
.

250 Ok: queued as ABC1D1C123

	 
 	

quit

221 BYE

	 

If the server responded like in the example dialog above then the email was at least received. In the log file /var/log/mail.log you should find a section like this:

Jul 24 21:48:28 myserver postfix/smtpd[9119]: connect from myserver[127.0.0.1]
Jul 24 21:48:48 myserver postfix/smtpd[9119]: F2C1B47BD: client=myserver[127.0.0.1]
Jul 24 21:48:52 myserver postfix/cleanup[9144]: F2C1B47BD: message-id=<20040724194842.F2C1B47BD@myserver>
Jul 24 21:48:52 myserver postfix/qmgr[9117]: F2C1B47BD: from=<test@workaround.org>, size=313, nrcpt=1 (queue active)
Jul 24 21:48:52 myserver postfix/virtual[9148]: F2C1B47BD: to=<user@virtual.test>, relay=virtual, delay=10, status=sent (delivered to maildir)

If you read "status=sent (delivered to maildir)" then the email has been successfully delivered. Run the command find /home/vmail to see all directories and files there. It should look like this:

/home/vmail/user@virtual.test
/home/vmail/user@virtual.test/tmp
/home/vmail/user@virtual.test/cur
/home/vmail/user@virtual.test/new
/home/vmail/user@virtual.test/new/1090001045.2704_0.myserver.workaround.org

Everyting worked like I described? Great. Then as a last test you may try to fetch the email from your mail client via POP3 or IMAP (depending on what service you installed). The username for fetching email is always the email address ("user@virtual.test") and the password is "secret" in this test case. 

Attachment: pgpauF0qDJ_m8.pgp
Description: PGP signature


Reply to: