Hey all, got an issue seems to be the same, getting the "Relay access denied" during i send mail to external mailboxes via telnet. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24 is not working for me. mayve i need to add something differend there.
i ll post u one try from server mail to server mail (that woks!)
and follows one try from server mail to consamartzis@gmail.com(that returns the error)
so i go via telnet:
Code:
root@diaitaplus:~# telnet aceworx.com 25Trying 37.123.115.133...
Connected to aceworx.com.
Escape character is '^]'.
220 mail.aceworx.com ESMTP Postfix (Ubuntu)
EHLO mail.aceworx.com
250-mail.aceworx.com
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM: <info@aceworx.com>
250 2.1.0 Ok
RCPT TO: <csamartzis@aceworx.com>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
blah blah
more blah
.
250 2.0.0 Ok: queued as 5D9D0E16F
MAIL FROM: <info@aceworx.com>
250 2.1.0 Ok
RCPT TO: <consamartzis@gmail.com>
554 5.7.1 <consamartzis@gmail.com>: Relay access denied
Code:
Apr 23 20:36:43 diaitaplus postfix/smtpd[12563]: connect from diaitaplus[37.123.115.133]
Apr 23 20:37:52 diaitaplus postfix/smtpd[12563]: 5D9D0E16F: client=diaitaplus[37.123.115.133]
Apr 23 20:38:06 diaitaplus postfix/cleanup[12568]: 5D9D0E16F: message-id=<20130423203752.5D9D0E16F@mail.aceworx.com>
Apr 23 20:38:06 diaitaplus postfix/qmgr[12552]: 5D9D0E16F: from=<info@aceworx.com>, size=339, nrcpt=1 (queue active)
Apr 23 20:38:06 diaitaplus postfix/virtual[12570]: 5D9D0E16F: to=<csamartzis@aceworx.com>, relay=virtual, delay=31, delays=31/0.01/0/0.69, dsn=2.0.0, status=sent (delivered to maildir)
Apr 23 20:38:06 diaitaplus postfix/qmgr[12552]: 5D9D0E16F: removed
Apr 23 20:38:57 diaitaplus postfix/smtpd[12563]: NOQUEUE: reject: RCPT from diaitaplus[37.123.115.133]: 554 5.7.1 <consamartzis@gmail.com>: Relay access denied; from=<info@aceworx.com> to=<consamartzis@gmail.com> proto=ESMTP helo=<mail.aceworx.com>
thats my mysql log tailing:
Code:
109 Query SELECT destination FROM aliases WHERE mail='csamartzis@aceworx.com' and enabled = 1130423 20:38:06 106 Query SELECT destination FROM aliases WHERE mail='aceworx.com' and enabled = 1
107 Query SELECT domain FROM domains WHERE domain='aceworx.com' and enabled = 1
110 Connect mail@localhost on maildb
110 Query SELECT maildir FROM users WHERE id='csamartzis@aceworx.com' and enabled = 1
130423 20:38:52 109 Quit
130423 20:38:57 106 Query SELECT destination FROM aliases WHERE mail='gmail.com' and enabled = 1
107 Query SELECT domain FROM domains WHERE domain='gmail.com' and enabled = 1
130423 20:39:06 110 Quit
130423 20:39:57 106 Quit
107 Quit
and thats my main.cf (as u advised in post):
Code:
# 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
myorigin = aceworx.com
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
{...}
myhostname = mail.aceworx.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
local_recipient_maps =
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
mynetworks = host
{...}
i also give u one ifconfig command resault because i think u may need that.
Code:
root@diaitaplus:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:bc:01:88
inet addr:37.123.115.133 Bcast:37.123.115.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:febc:188/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:289162 errors:0 dropped:120 overruns:0 frame:0
TX packets:25365 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:67813040 (67.8 MB) TX bytes:2981835 (2.9 MB)
Interrupt:32
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1503 errors:0 dropped:0 overruns:0 frame:0
TX packets:1503 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:118527 (118.5 KB) TX bytes:118527 (118.5 KB)
Anyone knows what i have to add in "my networks" value to permit sending external mail from my mail server?
Bookmarks