LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-08-2013, 03:15 AM   #1
rolf1316
LQ Newbie
 
Registered: May 2013
Posts: 4

Rep: Reputation: Disabled
SENDING MAILS via Postfix in CENTOS6.4


Hello

I'm a newbie in this thing constructing a mail server. So far I have successfully installed postfix and dovecot in centOS 6.4 and been sending and receiving mails locally .Now I'm tasked with the next problem which is that I need to send emails to other domains such as yahoo, and ofcourse receive mail from other server domains as well (but i know its a lot more complicated to receive mails from outside the local network because of IP issues).


BTW I'm using squirrelmail as a mail GUI for practice. When im sending emails to my yahoo account, squirrel mail shows me this error message
" Transaction failed
554 5.7.1 <email account here>: Relay access denied "


plus the maillog updates are always like this, even though im just checking the sent folder or inbox or whatsoever.

"May 8 09:14:10 krizna dovecot: imap-login: Login: user=<rolf>, method=PLAIN, rip=::1, lip=::1, mpid=3516, secured
May 8 09:14:10 krizna dovecot: imap(rolf): Disconnected: Logged out bytes=79/681"


What could be the source of the problem?? please I really need help on this
 
Old 05-08-2013, 11:10 AM   #2
siremaxus
Member
 
Registered: May 2013
Posts: 75

Rep: Reputation: Disabled
Hello,

Can you post your main.cf file for this server?

Sire Maxus
 
1 members found this post helpful.
Old 05-08-2013, 09:46 PM   #3
rolf1316
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Here It is

myhostname = mail.krizna.com
mydomain = krizna.com
myorigin = $mydomain
home_mailbox = mail/
mynetworks = 127.0.0.0/8
inet_interfaces = all
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = cyrus
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

Last edited by rolf1316; 05-08-2013 at 09:49 PM.
 
Old 05-08-2013, 10:42 PM   #4
siremaxus
Member
 
Registered: May 2013
Posts: 75

Rep: Reputation: Disabled
hi,

Is "rolf" a system user?
which IP is squirrelmail connecting to?
can you post a little more from /var/log/maillog and the log from dovecot in an instance of trying to send an e-mail to an external domain?

Good Luck
 
Old 05-09-2013, 12:42 AM   #5
rolf1316
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hello Sire Maxus..


yes rolf i think is a system user, i created it using useradd in the terminal line.

this is my dovecot config

protocols = imap pop3
mail_location = maildir:~/mail
pop3_uidl_format = %08Xu%08Xv


hope this is enough..
May 9 06:40:09 localhost postfix/qmgr[4833]: 58800101558: removed
May 9 06:40:09 localhost dovecot: imap(rolf): Disconnected: Logged out bytes=604/454
May 9 06:40:09 localhost dovecot: imap-login: Login: user=<rolf>, method=PLAIN, rip=::1, lip=::1, mpid=4871, secured
May 9 06:40:09 localhost dovecot: imap(rolf): Disconnected: Logged out bytes=294/2245
May 9 06:40:11 localhost dovecot: imap-login: Login: user=<rolf>, method=PLAIN, rip=::1, lip=::1, mpid=4876, secured
May 9 06:40:11 localhost dovecot: imap(rolf): Disconnected: Logged out bytes=293/4958
May 9 06:40:12 localhost dovecot: imap-login: Login: user=<rolf>, method=PLAIN, rip=::1, lip=::1, mpid=4881, secured
May 9 06:40:12 localhost dovecot: imap(rolf): Disconnected: Logged out bytes=294/2245


everytime I go to another directory the log reloads and says its disconnected..
 
Old 05-09-2013, 06:30 AM   #6
siremaxus
Member
 
Registered: May 2013
Posts: 75

Rep: Reputation: Disabled
Ok, thanks

Now we only need to check the maillog file just to be sure.

I need to do the following test, in a terminal screen execute the following command:
# su -rolf (press enter)
$ mail email@gmail.com -s "test from CLI at xxx time" (press enter)
This is a test. (press enter)
.(press enter)
cc: (press enter)

where i wrote "email@gmail.com" you must write your own testing gmail account.

then execute the following command:
tail -50 /var/log/maillog

And finally post the output of the last command here.

Good Luck.

Last edited by siremaxus; 05-09-2013 at 06:31 AM. Reason: added info
 
Old 05-09-2013, 09:44 PM   #7
rolf1316
LQ Newbie
 
Registered: May 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi!,

I cant execute the command su -rolf
it says su: invalid option -- 'r'

try 'su --help' for more information.

additional question.

Do I need a public Ip in order for me to email to gmail/yahoomail accounts??

Last edited by rolf1316; 05-09-2013 at 09:52 PM.
 
Old 05-10-2013, 08:31 AM   #8
siremaxus
Member
 
Registered: May 2013
Posts: 75

Rep: Reputation: Disabled
Hi,

sorry, the correct command is:
# su - rolf (there is a space before and after the hyphen)

Good Luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to Block sending mails via telent in postfix amratta Linux - Networking 2 03-10-2012 08:54 AM
Issues with Receiving and Sending Mails through Postfix in Webmin troubledhoster Linux - General 2 01-30-2012 08:18 AM
How to change ( masquerade) shell user name when sending mails via Postfix saagar Linux - Newbie 2 01-10-2012 09:10 PM
Thunderbird SMTP error while sending mails in Windows7 to Postfix rytec General 8 01-28-2011 09:24 AM


All times are GMT -5. The time now is 07:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration