Results 1 to 3 of 3

Thread: System mail forwarding

  1. #1
    Join Date
    Jul 2011
    Beans
    20

    System mail forwarding

    Hello,

    I have a laptop computer running Ubuntu 12.10 64 bits. I use this machine at work (corporate network).

    ---- My /etc/hostname contains

    Lenovo-ThinkPad-T400

    ---- My /etc/hosts contains

    127.0.0.1 localhost
    127.0.1.1 Lenovo-ThinkPad-T400

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters

    ---- My /etc/aliases contains

    webuser: root
    root: myemail@gmail.com
    jblain: myemail@gmail.com

    Now here is my problem, if I send an email to my gmail address directly

    $php -a
    $mail('myemail@gmail.com','GMAILTEST','WORKING?!?' );

    This works perfectly and I immediately see the email arrive in my gmail Inbox. But if I send to eitheir jblain or root,
    the email seems to disappear, instead of getting to gmail because of the aliases.

    Any suggestions anyone ?

    Regards

    Jacques Blain

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: System mail forwarding

    What do you see in /var/log/mail.log? That's always the first place to look if you need to debug mail problems.

    I assume you have Postfix or some other SMTP server like sendmail installed, yes?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Jul 2007
    Location
    Mississauga, ON
    Beans
    123
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: System mail forwarding

    Quote Originally Posted by J Blain View Post
    $php -a
    $mail('myemail@gmail.com','GMAILTEST','WORKING?!?' );

    This works perfectly and I immediately see the email arrive in my gmail Inbox.
    This means your mail routing part is fine.

    Quote Originally Posted by J Blain View Post
    But if I send to eitheir jblain or root,
    the email seems to disappear, instead of getting to gmail because of the aliases.
    This seems like you are having issues with your aliasing. Have you run
    Code:
    newaliases
    ?
    Windows by necessity, Linux by choice
    Lubuntu and loving it!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •