LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 03-20-2013, 05:53 AM   #1
stimpack
LQ Newbie
 
Registered: Mar 2013
Posts: 11

Rep: Reputation: Disabled
Postfix mail for mydomain.com loops back to myself Problem


I'm using vps server with ubuntu 10.04 when i send email i got this:

Mar 19 18:09:01 mail postfix/smtp[6340]: 8FAF722294: to=<root@mydomain.com>, orig_to=<root>, relay=none, delay=0.09, delays=0.08/0.01/0/0, dsn=5.4.6, status=bounced (mail for mydomain.com loops back to myself)

I look around inforums to find the solution but in vain even i changed my Postfix settings:

My destination setting was like this
Code:
    mail.mydomain.com, localhost.mydomain.com, , localhost
i changed it to this

Code:
 $mail.mydomain.com, localhost, localhost.mydomain.com, mydomain.com
i made many variations but still not working.

the output of `cat /etc/mailname`

Code:
 mail.mydomain.com

the output of `postconf -n`:
Code:
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    config_directory = /etc/postfix
    inet_interfaces = all
    inet_protocols = ipv4
    mailbox_size_limit = 0
    milter_default_action = accept
    milter_protocol = 2
    mydestination = localhost.$mydomain.com, localhost, mail.mydomain.com
    myhostname = mail.dimonos.info
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 ip
    myorigin = $mydomain
    non_smtpd_milters = inet:localhost:8891
    readme_directory = no
    recipient_delimiter = +
    relayhost =
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    smtpd_milters = inet:localhost:8891
    smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_use_tls = yes
 
Old 03-20-2013, 06:16 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,614

Rep: Reputation: 164Reputation: 164
Code:
mydestination = localhost.$mydomain.com, localhost, mail.mydomain.com
mydomain.com is not there. you probably need to reload your config(?)
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Postfix as a mail delivery server fails (status bounced loops back to myself) Larry James Linux - Server 8 07-18-2011 06:42 PM
mail loops back to me (MX problem?) OR did not issue MAIL/EXPN/VRFY/ETRN skc Linux - Server 6 07-09-2011 09:18 PM
Postfix mail loops back to myself iceman42 Linux - Server 3 08-03-2010 05:59 AM
Postfix-Squirrelmail: Mail sent to user1@mydomain.com delivered to user2@mydomain.com tsouvalasi Linux - Server 4 02-26-2010 08:15 AM
postfix virtual hosting problem - mail for domain.com loops back to myself ddaas Linux - Server 4 12-28-2008 08:50 PM


All times are GMT -5. The time now is 04:57 PM.

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