LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2012, 06:56 PM   #1
amr_salah944
LQ Newbie
 
Registered: Feb 2012
Posts: 20

Rep: Reputation: Disabled
mailserver problem


Hello
I was configuring my new mailserver (postfix + dovecot _ squirrel) and I faced a lot of problems and I solved some of them but unfortunately some still not solved

Now I am getting when trying to send to another domain from squirrel

Quote:
Message not sent. Server replied:
Transaction failed
554 5.7.1 <am_7584@yahoo.com>: Relay access denied
and this is my log file :


# tail -f /var/log/maillog
Quote:
Aug 31 23:46:49 bidigniter postfix/smtpd[15097]: disconnect from localhost[::1]
Aug 31 23:50:09 bidigniter postfix/anvil[15004]: statistics: max connection rate 3/60s for (smtp:::1) at Aug 31 23:46:49
Aug 31 23:50:09 bidigniter postfix/anvil[15004]: statistics: max connection count 1 for (smtp:::1) at Aug 31 23:44:02
Aug 31 23:50:09 bidigniter postfix/anvil[15004]: statistics: max cache size 1 at Aug 31 23:44:02
Aug 31 23:50:59 bidigniter dovecot: imap-login: Login: user=<test1>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=15334, secured
Aug 31 23:50:59 bidigniter dovecot: imap(test1): Disconnected: Logged out bytes=79/681
Aug 31 23:52:05 bidigniter postfix/smtpd[15381]: connect from localhost[::1]
Aug 31 23:52:05 bidigniter postfix/smtpd[15381]: NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1 <am_7584@yahoo.com>: Relay access denied; from=<test1@bidigniter.com> to=<am_7584@yahoo.com> proto=ESMTP helo=<www.bidigniter.com>
Aug 31 23:52:05 bidigniter postfix/smtpd[15381]: lost connection after RCPT from localhost[::1]
Aug 31 23:52:05 bidigniter postfix/smtpd[15381]: disconnect from localhost[::1]
I can't figure out what's wrong at this level , so please help me

my main config files :


/etc/postfix/main.cf
Quote:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = bidigniter.com
mydomain = bidigniter.com
myorigin = $mydomain
inet_interfaces = all
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases


debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES


/etc/postfix/access
Quote:
65.61.189.128 RELAY
127.0.0.0 RELAY
41.34.141.79 RELAY

/etc/dovecot/dovecot.conf
Quote:
protocols = imap pop3
ssl = no
mail_location = maildir:~/Maildir
listen = *
dict {
#quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
#expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
}
!include conf.d/*.conf



/etc/dovecot/conf.d/auth-system.conf.ext
Quote:
passdb {
driver = pam
[max_requests=<n>]
}

userdb {
driver = passwd
}
 
Old 08-31-2012, 07:25 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
I don't know much about Postfix, but I noticed this:
Quote:
Aug 31 23:52:05 bidigniter postfix/smtpd[15381]: connect from localhost[::1]
Aug 31 23:52:05 bidigniter postfix/smtpd[15381]: NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1 <am_7584@yahoo.com>: Relay access denied; from=<test1@bidigniter.com> to=<am_7584@yahoo.com> proto=ESMTP helo=<www.bidigniter.com>
...whlle main.cf has this:
Code:
mynetworks = 127.0.0.0/8
..and /etc/postfix/access contains this line:
Code:
127.0.0.0	RELAY
Could the problem be that Squirrelmail connects using IPv6? Try adding this line to /etc/postfix/access:
Code:
::1	RELAY
If it still doesn't work, try adding ::1/128 to the "mynetworks" line in main.cf:
Code:
mynetworks = 127.0.0.0/8 ::1/128
 
Old 09-17-2012, 07:13 AM   #3
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
I have a similar problem. Wondering if this has been solved?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
overloading problem in mailserver centos123 Linux - Server 9 06-29-2011 04:34 AM
Mailserver problem saran_redhat Linux - Newbie 1 11-03-2009 12:23 AM
Mailserver problem bikebefast Linux - Server 4 01-03-2008 08:20 AM
mailserver problem jayakrishnan Linux - Networking 6 06-24-2006 02:56 AM
Problem with postfix mailserver..!?! knuzzen Linux - Networking 0 09-01-2004 05:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration