PDA

View Full Version : Relay access denied


maxx
26th July 2005, 18:20
Hello.

I keep having problems with Fedora 4.

First didnt get any email to my account. Now I have this problem:

The Postfix program

<joakim@xxxxx.xx>: host xxxxx.xx [195.197.xxx.xx] said: 554 <joakim@xxxxx.xx>:
Relay access denied (in reply to RCPT TO command)

Can you help me? Thanks!

jojo
26th July 2005, 18:30
You have to turn on SMTP-AUTH for your Postfix. Falko has just written a tutorial about how to do this on Fedora 4: http://www.howtoforge.com/perfect_setup_fedora_core_4

And in your email client, you must activate "Server needs authentication" (or similar) to be able to send emails with your Postfix.

jojo

maxx
26th July 2005, 18:37
Did that, but ill do it again, if I did something wrong. Problem before was that I didnt receive mail and it doesnt come back to sender...

Lets see again...

Thanks.

You have to turn on SMTP-AUTH for your Postfix. Falko has just written a tutorial about how to do this on Fedora 4: http://www.howtoforge.com/perfect_setup_fedora_core_4

And in your email client, you must activate "Server needs authentication" (or similar) to be able to send emails with your Postfix.

jojo

jojo
26th July 2005, 19:14
Can you see anything related to this behaviour in /var/log/maillog?

jojo

maxx
27th July 2005, 22:08
Yes I can. Ill do reinstall. Lets see after that. Thanks.

Maximus_DDT
19th August 2007, 01:46
HELP!! I install UBUNTU 7.04 as MailServer, the system let me receive mail, but don't let send external mail :o(

i follow the steps from
The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake) - Page 5

so i don't know what to do.

I tried modify main.cf mynetworks including my local ip/24 but don't work.

I'm using outlook in my clients and when i check for "Server needs authentication" always ask for user and password, and i write it and ask me again and again and don't let me see if the mail has send.

(sorry my English its not good)

falko
19th August 2007, 15:00
Are you sure that you use the correct username and password?
Any errors in your mail log?

Maximus_DDT
20th August 2007, 02:12
Yeap!! I use the correct user and password. And the problem still the same :confused:

Maximus_DDT
20th August 2007, 02:14
554 5.7.1 <***@gmail.com>: Relay access denied

thats the message in outlook

falko
20th August 2007, 19:15
What's in /etc/postfix/main.cf? Any errors in /var/log/mail.log?

What's the output of telnet localhost 25
and then ehlo localhost?

Maximus_DDT
20th August 2007, 19:34
The content of main. cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.cf.com.mx, genes.com.mx, restaurante-tequila.com.mx, rtequila.com.mx, mail, localhost.localdomain, local
host
relayhost =
#mailbox_command=procmail -a "$EXTENSION"
mailbox_command =

mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
#mynetworks_style=host
masquerade_domains= genes.com.mx
inet_protocols = all
#mynetworks_style=host
masquerade_domains= genes.com.mx

smtpd_sasl_local_domain=
smtpd_sasl_auth_enable=yes
smtpd_sasl_security_options= noanonymous
broken_sasl_auth_clients= yes
smtpd_sasl_path= /etc/postfix/sasl:/usr/lib/sasl2
smtpd_recipient_restrictions= permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination

smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
myhostname= mail.cf.com.mx

home_mailbox = Maildir/


and the content of telnet

tequila@mail:~$ sudo telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 mail.cf.com.mx ESMTP Postfix (Ubuntu)
ehlo localhost
250-mail.cf.com.mx
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN DIGEST-MD5 CRAM-MD5 NTLM PLAIN
250-AUTH=LOGIN DIGEST-MD5 CRAM-MD5 NTLM PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN



and there are many ERRORs in /var/log/mail.log :confused:
like these:

Aug 20 12:30:17 mail postfix/smtpd[6046]: connect from unknown[201.155.111.185]
Aug 20 12:30:17 mail postfix/smtpd[6046]: 78DC91681B9: client=unknown[201.155.111.185]
Aug 20 12:30:17 mail postfix/smtpd[6046]: 78DC91681B9: reject: RCPT from unknown[201.155.111.185]: 554 5.7.1

<ddtlopez@gmail.
com>: Relay access denied; from=<d.lopez@genes.com.mx> to=<ddtlopez@gmail.com> proto=ESMTP helo=<xpMAX>
Aug 20 12:30:17 mail postfix/cleanup[6050]: 78DC91681B9: message-id=<000001c7e350$100f5e80$43c8a8c0@xpMAX>
Aug 20 12:30:17 mail postfix/qmgr[5766]: 78DC91681B9: from=<d.lopez@genes.com.mx>, size=2453, nrcpt=1 (queue active)
Aug 20 12:30:17 mail postfix/local[6051]: 78DC91681B9: to=<d.lopez@genes.com.mx>, relay=local, delay=0.14,

delays=0.12/0.01/0
/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Aug 20 12:30:17 mail postfix/qmgr[5766]: 78DC91681B9: removed
Aug 20 12:30:20 mail postfix/smtpd[6046]: disconnect from unknown[201.155.111.185]
Aug 20 12:31:03 mail courierpop3login: Connection, ip=[::ffff:201.155.111.185]
Aug 20 12:31:03 mail courierpop3login: LOGIN, user=d.lopez, ip=[::ffff:201.155.111.185]
Aug 20 12:31:04 mail courierpop3login: LOGOUT, user=d.lopez, ip=[::ffff:201.155.111.185], top=0, retr=2471, rcvd=40,

sent=274
1, time=1 i don't know that to do

falko
21st August 2007, 17:16
Please run
echo 'pwcheck_method: saslauthd' > /etc/postfix/sasl/smtpd.conf
echo 'mech_list: plain login' >> /etc/postfix/sasl/smtpd.confas shown on http://www.howtoforge.com/perfect_setup_ubuntu704_p5

Maximus_DDT
22nd August 2007, 15:19
ups :(
when i tried to execute the code this message appear:
Permission Denied

I wrote like this

sudo echo 'pwcheck_method: saslauthd' > /etc/postfix/sasl/smtpd.conf
sudo echo 'mech_list: plain login' >> /etc/postfix/sasl/smtpd.conf

falko
23rd August 2007, 19:10
Please do it as root.

Maximus_DDT
24th August 2007, 07:30
I tried again reinstalling all the system :(
then when I run as root:
echo 'pwcheck_method: saslauthd' > /etc/postfix/sasl/smtpd.conf

appears:
-bash: etc/postfix/sasl/smtpd.conf: No such file or directory

Maximus_DDT
25th August 2007, 00:10
SOLVED!!

I tried again and it works!!!

http://www.howtoforge.com/perfect_setup_ubuntu704

:) :) :) :)

hahni
3rd April 2011, 21:26
The "/etc/postfix/virtusertable"-File contains the following entries:

test@www.070790.de 070790.de_test
070790.de_test@www.070790.de 070790.de_test


The problem seems to be, that "test@070790.de" will not work, because ISPConfig 2 only add "test@www.070790.de". What can be done?

falko
4th April 2011, 12:34
Does 070790.de (without a hostname) exist on the Co-Domains tab? If not, please create it.