PDA

View Full Version : Email appearing sent-- never gets to destination


grandpagenocide
1st July 2007, 17:00
I used a clean install of fedora core 6, Ispconfig, and uebiMiau, the web server is working fine, now that my cheap ass finally paid the extra to get my isp to open ports 80 and 25. When I send a mail through the uebiMiau webmail, it says mail sent, doesnt give an undeliverable message and the mail never gets to the destination. I am an admitted noob and appreciate any help.

grandpagenocide
2nd July 2007, 05:50
ok well no one responded. Now appearently I can send email, however I cannot recieve email??? how can I get the recieving workin??

till
2nd July 2007, 10:29
Dou you get any entries in your mail logfile, when you send a email to your server? If yes, please post the messages in the logfile, if not, please check that the MX record of the domain points to your external IP address.

grandpagenocide
2nd July 2007, 15:47
Till I checked the mail log and no record of any incoming, in the domain name the mx record is directed to my IP, when i send a mail from yahoo this is the response i get [quote] 24.185.88.195 does not like recipient.
Remote host said: 554 5.7.1 <web1_rodney@xxxxxxxxx.com>: Relay
access denied
Giving up on 24.185.88.195.

any ideas? I scanned my ports and they are listed as closed, but not stealthed.

falko
2nd July 2007, 19:54
Is port 25 open in the firewall? And please check that the MX record is correct:
dig mx xxxxxxxxx.com

grandpagenocide
3rd July 2007, 03:35
port 25 is open and i checked the firewall which is open as well-- the box itself is on dmz at the moment while i try to get this thing working properly, firewall and selinux are off, and ispconfig firewall has the port forwarded as default.

grandpagenocide
3rd July 2007, 03:42
i attached my mail log..... This was so much simpler when i was paying someone else to do it for me arghhh hehe

; <<>> DiG 9.3.4 <<>> mx rhwebhosting.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41558
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 2

;; QUESTION SECTION:
;rhwebhosting.com. IN MX

;; ANSWER SECTION:
rhwebhosting.com. 600 IN MX 20 mail.rhwebhosting.com.

;; AUTHORITY SECTION:
rhwebhosting.com. 14400 IN NS yns2.yahoo.com.
rhwebhosting.com. 14400 IN NS ns8.san.yahoo.com.
rhwebhosting.com. 14400 IN NS ns9.san.yahoo.com.
rhwebhosting.com. 14400 IN NS yns1.yahoo.com.

;; ADDITIONAL SECTION:
ns9.san.yahoo.com. 6289 IN A 216.109.116.20
yns2.yahoo.com. 11704 IN A 216.109.116.20

;; Query time: 64 msec
;; SERVER: 167.206.3.204#53(167.206.3.204)
;; WHEN: Mon Jul 2 20:44:13 2007
;; MSG SIZE rcvd: 171

till
3rd July 2007, 10:36
This looks fine so far. Please post the output of:

dig mail.rhwebhosting.com

grandpagenocide
3rd July 2007, 14:49
; <<>> DiG 9.3.4 <<>> mail.rhwebhosting.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33826
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 2

;; QUESTION SECTION:
;mail.rhwebhosting.com. IN A

;; ANSWER SECTION:
mail.rhwebhosting.com. 600 IN A 24.185.88.195

;; AUTHORITY SECTION:
rhwebhosting.com. 14400 IN NS yns1.yahoo.com.
rhwebhosting.com. 14400 IN NS yns2.yahoo.com.
rhwebhosting.com. 14400 IN NS ns8.san.yahoo.com.
rhwebhosting.com. 14400 IN NS ns9.san.yahoo.com.

;; ADDITIONAL SECTION:
ns8.san.yahoo.com. 2582 IN A 66.218.71.205
ns9.san.yahoo.com. 9756 IN A 216.109.116.20

;; Query time: 52 msec
;; SERVER: 167.206.3.204#53(167.206.3.204)
;; WHEN: Tue Jul 3 07:47:27 2007
;; MSG SIZE rcvd: 171

is the output from dig mail.rhwebhosting.com

grandpagenocide
3rd July 2007, 14:51
odd question should my dns settings in network be set to my isp's dns or to my yahoo's dns? and could that be the problem?

falko
3rd July 2007, 16:32
The DNS settings seem to be ok, and I can connect to your mail server:

mh1# telnet mail.rhwebhosting.com 25
Trying 24.185.88.195...
Connected to ool-18b958c3.dyn.optonline.net.
Escape character is '^]'.
220 server1.rhwebhosting.com ESMTP Postfix
ehlo localhost
250-server1.rhwebhosting.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.
What's the output of postconf -n?

One thing I noticed is that your server is listed on lots of blacklists because it's using a dynamic IP address: http://www.mxtoolbox.com/blacklists.aspx

grandpagenocide
4th July 2007, 01:55
# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = /etc/postfix/local-host-names
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550

hmmm ok so i have to see if opt will provide a static ip or is there another way around that?

till
4th July 2007, 11:24
Either you need a static IP address or you must relay all emails trough a SMTP relayserver of your provider.

grandpagenocide
4th July 2007, 16:40
till dumb question but how do i do that? and will a ddns service handle the static ip issue? I spoke to my provider yesterday and they said its included in my package and I just have to set it up

falko
4th July 2007, 17:05
Take a look here: http://www.howtoforge.com/postfix_relaying_through_another_mailserver

grandpagenocide
4th July 2007, 17:13
falko ok I did that now do I have to fix anything in my dns settings because of that change? or in ISP config? Im still not able to recieve emails

grandpagenocide
4th July 2007, 17:22
Jul 2 08:44:04 server1 postfix/smtp[27118]: C61A773474C: host mailin-04.mx.aol.com[64.12.138.88] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195
Jul 2 08:44:04 server1 postfix/smtp[27117]: 19E3D734749: host mailin-02.mx.aol.com[64.12.137.168] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195
Jul 2 08:44:04 server1 postfix/smtp[27116]: 0029D73474E: host mailin-02.mx.aol.com[64.12.137.89] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195
Jul 2 08:44:04 server1 postfix/smtp[27118]: C61A773474C: host mailin-02.mx.aol.com[64.12.137.168] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195
Jul 2 08:44:04 server1 postfix/smtp[27117]: 19E3D734749: host mailin-02.mx.aol.com[205.188.157.25] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195
Jul 2 08:44:04 server1 postfix/smtp[27116]: 0029D73474E: host mailin-02.mx.aol.com[64.12.137.168] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195
Jul 2 08:44:04 server1 postfix/smtp[27118]: C61A773474C: host mailin-02.mx.aol.com[205.188.157.25] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195
Jul 2 08:44:05 server1 postfix/smtp[27117]: 19E3D734749: host mailin-03.mx.aol.com[64.12.138.120] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195
Jul 2 08:44:05 server1 postfix/smtp[27118]: C61A773474C: to=<babbina@aol.com>, relay=mailin-04.mx.aol.com[64.12.138.57]:25, delay=82212, delays=82210/0.04/2.5/0, dsn=4.0.0, status=deferred (host mailin-04.mx.aol.com[64.12.138.57] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195)
Jul 2 08:44:05 server1 postfix/smtp[27117]: 19E3D734749: to=<babbina@aol.com>, relay=mailin-04.mx.aol.com[205.188.159.216]:25, delay=82370, delays=82367/0.06/2.5/0, dsn=4.0.0, status=deferred (host mailin-04.mx.aol.com[205.188.159.216] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195)
Jul 2 08:44:05 server1 postfix/smtp[27116]: 0029D73474E: to=<babbina@aol.com>, relay=mailin-02.mx.aol.com[205.188.155.89]:25, delay=30380, delays=30378/0.07/2.6/0, dsn=4.0.0, status=deferred (host mailin-02.mx.aol.com[205.188.155.89] refused to talk to me: 554- (RTR:BB) http://postmaster.info.aol.com/errors/554rtrbb.html 554 Connecting IP: 24.185.88.195)
Jul 2 08:48:01 server1 postfix/smtpd[27182]: connect from web59306.mail.re1.yahoo.com[66.196.101.47]
Jul 2 08:48:01 server1 postfix/smtpd[27182]: NOQUEUE: reject: RCPT from web59306.mail.re1.yahoo.com[66.196.101.47]: 554 5.7.1 <admin@rhwebhosting.com>: Relay access denied; from=<nywebhosting@yahoo.com> to=<admin@rhwebhosting.com> proto=SMTP helo=<web59306.mail.re1.yahoo.com>
Jul 2 08:48:02 server1 postfix/smtpd[27182]: disconnect from web59306.mail.re1.yahoo.com[66.196.101.47]
Jul 2 08:51:22 server1 postfix/anvil[27186]: statistics: max connection rate 1/60s for (smtp:66.196.101.47) at Jul 2 08:48:01
Jul 2 08:51:22 server1 postfix/anvil[27186]: statistics: max connection count 1 for (smtp:66.196.101.47) at Jul 2 08:48:01
Jul 2 08:51:22 server1 postfix/anvil[27186]: statistics: max cache size 1 at Jul 2 08:48:01
found this in maillog.ispconfigsave

falko
5th July 2007, 14:55
These are old logs. Sending should now work if you've implemented the relaying correctly.
Please check with dig mx yourdomain.com
that the MX record for the domain you're sending to is correct. Also, is there some action in the mail log when you send a mail to your server?

grandpagenocide
6th July 2007, 03:11
falko sending always worked with most email addresses the problem is recieving

arrrffff falko thanks the relay is working-- if your ever in new york hit me up and ill buy u a beer or 2 or 3 or 4