PDA

View Full Version : Help Please !!!


brainz
25th March 2006, 21:47
Hi all

Just wanting to know what this means ???

INFO
Acceptance of domain literals
WARNING: One or more of your mailservers does not accept mail in the domain literal format (user@[0.0.0.0]). Mailservers are technically required RFC1123 (http://www.dnsstuff.com/pages/rfc1123.htm) 5.2.17 to accept mail to domain literals for any of its IP addresses. Not accepting domain literals can make it more difficult to test your mailserver, and can prevent you from receiving E-mail from people reporting problems with your mailserver. However, it is unlikely that any problems will occur if the domain literals are not accepted (mailservers at many common large domains have this problem).
mail.baktim.com's postmaster@[85.105.174.11] response:
>>> RCPT TO:<postmaster@[85.105.174.11]>
<<< 554 <postmaster@[85.105.174.11]>: Relay access denied

Also having a problem with postfix
I can send email to all the email accounts and i can use a client and connect to postfix and i can see all the respective emails in there directories but the email will not be viewed in a email client ie outlook and Evolution.

I even did what it says in this thread http://www.howtoforge.com/forums/showthread.php?t=2

but ti doesnt seem to make a diffference ???

if anyone can help this would be fantastic...

regards
brainz :rolleyes::cool:

till
26th March 2006, 01:03
1) The info message means that your server does not accept emails for IP addresses. This is OK.

To your email receiving problem. Which pop3 / imap daemon do you use. If you use courier or dovecot you must switch your postfix config to use maildir.

brainz
26th March 2006, 01:41
Hi till,

Actually i think im using couier since dovecot will not start and it gives me a error like this... after i try and restart it...

dovecot failed. The error was: Starting Dovecot Imap: [FAILED]
After doing a netstat -tap

i get...

tcp 0 0 *:imaps *:* LISTEN 2347/xinetd
tcp 0 0 *:pop3s *:* LISTEN 2347/xinetd
tcp 0 0 *:pop3 *:* LISTEN 2347/xinetd
tcp 0 0 *:imap *:* LISTEN 2347/xinetd
tcp 0 0 *:smtp *:* LISTEN 7188/master

So if i understand this correctly you are telling to do this....

To your email receiving problem. Which pop3 / imap daemon do you use. If you use courier or dovecot you must switch your postfix config to use maildir.
in my main.cf you want me to uncomment this

# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
home_mailbox = Maildir/

Then restart postfix /etc/init.d/postfix restart

I hope i understood you right till but i did change it and i tested the email and i still didnt recieved them back from the server ???

regards :rolleyes::cool:

falko
26th March 2006, 11:58
From your netstat output I guess you're using ipopd which uses the mbox format, so please switch back from Maildir.

What's in the mail log when you send a message to yourself?

brainz
26th March 2006, 13:19
Hi falko,

In response to this....

From your netstat output I guess you're using ipopd which uses the mbox format, so please switch back from Maildir.
I guessing i have to recomment this ...

# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
home_mailbox = Maildir/
Then i cleared the existing maillog....
Then i sent a email to the mail account i have setup being

postmaster [a] baktim dot com

There are 3 other mail accounts but it fills the log and the log doesnt fit here so i only did it for one.

and the output of the mail log is this... Im sorry but its pritty long...

log was here

sorry dont really want to many people or more importantly bots seeing the log.

regards
brainz :rolleyes::cool:

till
26th March 2006, 17:04
I think the correct setting will be to comment out both:

# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/

Then restart postfix and try again.

brainz
27th March 2006, 11:04
Hi till,

Just a quick question !!!!

I wanted to find out if i use Dovecot for IMAP and POP3 do i need to use what specified in the How-to The Perfect Setup - Fedora Core 4.

Postfix With SMTP-AUTH And TLS
apt-get install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix imap

postconf -e 'smtpd_sasl_local_domain ='
postconf -e 'smtpd_sasl_auth_enable = yes'
postconf -e 'smtpd_sasl_security_options = noanonymous'
postconf -e 'broken_sasl_auth_clients = yes'
postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination'
postconf -e 'inet_interfaces = all'
echo 'pwcheck_method: saslauthd' > /usr/lib/sasl2/smtpd.conf
echo 'mech_list: plain login' >> /usr/lib/sasl2/smtpd.conf

mkdir /etc/postfix/ssl
cd /etc/postfix/ssl/
openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
chmod 600 smtpd.key
openssl req -new -key smtpd.key -out smtpd.csr
openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
openssl rsa -in smtpd.key -out smtpd.key.unencrypted
mv -f smtpd.key.unencrypted smtpd.key
openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650
postconf -e 'smtpd_tls_auth_only = no'
postconf -e 'smtp_use_tls = yes'
postconf -e 'smtpd_use_tls = yes'
postconf -e 'smtp_tls_note_starttls_offer = yes'
postconf -e 'smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key'
postconf -e 'smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt'
postconf -e 'smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem'
postconf -e 'smtpd_tls_loglevel = 1'
postconf -e 'smtpd_tls_received_header = yes'
postconf -e 'smtpd_tls_session_cache_timeout = 3600s'
postconf -e 'tls_random_source = dev:/dev/urandom'
Now start Postfix, saslauthd, imap and pop3:
chkconfig --levels 235 sendmail off
chkconfig --levels 235 postfix on
chkconfig --levels 235 saslauthd on
chkconfig imap on
chkconfig imaps on
chkconfig ipop3 on
chkconfig pop3s on
/etc/init.d/sendmail stop
/etc/init.d/postfix start
/etc/init.d/saslauthd start
/etc/init.d/xinetd restart

and if i dont do i have to any of the steps here :confused:
Actually what im trying to say is if i use Dovecot do i have to use any of these steps ??
regards
brainz :rolleyes::cool:

falko
27th March 2006, 15:13
If you want to use dovecot, you'd run

apt-get install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix dovecot

instead of

apt-get install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix imap

and

chkconfig --levels 235 dovecot on

instead of

chkconfig imap on
chkconfig imaps on
chkconfig ipop3 on
chkconfig pop3s on

The rest remains unchanged.

brainz
28th March 2006, 00:48
Hi falko and till,

Well i just wanted to say it took me a little while to rebuild the whole server but the email works like a charm with dovecot and maildir. Even the server sends monitoring emails to postmaster letting me know some info with regards to the server.

Just though i would let you guys know and also wanted to let you know my appreciation for your help and also sometimes forcing me to help myself (i dont know if that made sense but anyway).... and i would say that the majority of the poeple that use this excellent site would agree with me....

Thanks again :D;)
regards
brainz :rolleyes::cool: