SENDING MAILS via Postfix in CENTOS6.4
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
Can you post your main.cf file for this server?
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
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?
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: 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..
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 firstname.lastname@example.org -s "test from CLI at xxx time" (press enter)
This is a test. (press enter)
cc: (press enter)
where i wrote "email@example.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.
I cant execute the command su -rolf
it says su: invalid option -- 'r'
try 'su --help' for more information.
Do I need a public Ip in order for me to email to gmail/yahoomail accounts??
sorry, the correct command is:
# su - rolf (there is a space before and after the hyphen)
|All times are GMT -5. The time now is 12:35 PM.|