Differences between revisions 41 and 42
Revision 41 as of 2018-10-03 01:58:17
Size: 6055
Editor: ?aerostitch
Comment: Adding information on how to send debian emails via gmail as not always trivial
Revision 42 as of 2018-10-03 02:32:07
Size: 6061
Editor: PaulWise
Comment: formatting
Deletions are marked like this. Additions are marked like this.
Line 111: Line 111:
Line 112: Line 113:
* your_username@debian.org as email address
* smtp.gmail.com as the SMTP server (in the 2nd step of the process)
* your gmail account as your username
* you will have to generate an app password (at least if you enabled your 2 factors authentication) and use that as password in the password field.
 * your_username@debian.org as email address
 * smtp.gmail.com as the SMTP server (in the 2nd step of the process)
 * your gmail account as your username
 * you will have to generate an app password (at least if you enabled your 2 factors authentication) and use that as password in the password field.

The aim of this article is to collect the needed steps/tips (a little more than what's in the DSA email) once you finally reach the state of DD. A similar collection is DebianServiceForDD.

This article should probably be merged into a new section in the first chapter of the developers-reference.

Initial Steps

So first go and update your information at https://db.debian.org/

Then, a really nice feature is using ssh key authentication, as written at https://db.debian.org/doc-mail.html and https://db.debian.org/password.html

Then update your DEBEMAIL shell variable, and all other configuration files where your previous email address was written (to name one, ~/.reportbugrc)

DDPO Pages

All your previous uploads are under a DDPO page (let's take the example from my own) but now you (probably) start using your @debian.org account for future upload (like me).

Since uploading just to change the email address is damn wrong, it would be helpful to merge the old account into the new one.

Currently there is a way, described on DDPO main page: send an email to ddpo@qa.debian.org and issue a subscribe <source package name> [<section>] command (even more in the same email).

As explained in this bug 499638 (where I asked to provide a way to do it a single command), there is another way: keep looking at the old DDPO page but adding the @debian.org address as uploader, to show packages sponsored by that id.

Maybe, the best solution is to use names instead of emails, Sandro Tosi, that groups up all the info for that guy (of course if you don't have an homonyms ;) )

Bugs

All the bugs you submitted were filed with a different address, you can use the link on the BTS page to see them and use bts submitter <bugnr> ! commands to change the bugsubmitter (on unarchived bugs) when you changed the DEBEMAIL shell variable.

If you want to change the bugsubmitter and owner of all bugs in a list of e-mails, archived and unarchived, you can use this shell script:

#!/bin/sh

# USAGE:
# export MAIL=foo@debian.org
# ./bts-submitter email1@example.com ... | mail control@bugs.debian.org

set -e

for field in submitter owner
do
    bugs=""
    for email in $@
    do
        echo "# bugs with $field $email"
        for bug in `bts select $field:$email`
        do
            echo $field $bug !
        done
    done
done
echo thanks

GPG Key Sign Offering

Consider adding yourself to Debian GPG Signing Coordination page, so that other in need for a sign on their key by a DD could leverage your brand new status :)

Salsa

Since Salsa is pretty new, some steps may be missing.

Account migration

An account will be created for you, see Salsa/Doc#Users:_Login_and_Registration for details on how to activate it.

Login with your old -guest account and:

Logout, set the password for your new account if you haven't already and login with it, then:

  • add the ssh keys on https://salsa.debian.org/profile/keys;

  • request access to the groups and projects you were on (note that you will already be in the Debian group);
  • migrate your personal repositories to the new account

E-Mail Setup in General

Many DDs prefer to use their @debian.org address when communicating with or via Debian or derivatives. Some mail programs allow to automate this:

Mutt

Use send-hooks in your .muttrc:

# Default value to reset the value on the next mail
send-hook . 'my_hdr From: Axel Beckert <abe@deuxchevaux.org>'
send-hook . 'unmy_hdr Organization'
send-hook . 'set signature="~/.mutt/signatures/default"'

# Use debian.org address when sending to Debian or Ubuntu related addresses
send-hook '~C "@(.*\.)?(debian|ubuntu|launchpad)\."' 'my_hdr From: Axel Beckert <abe@debian.org>'
send-hook '~C "@(.*\.)?(debian|ubuntu|launchpad)\."' 'my_hdr Organization: The Debian Project'
send-hook '~C "@(.*\.)?(debian|ubuntu|launchpad)\."' 'set signature="~/.mutt/signatures/debian"'

That way your @debian.org address is always used if one of the recipients' e-mail address (including the BTS) contain the strings debian, ubuntu or launchpad (followed by a dot).

GMail

You can send emails directly from gmail using your @debian.org account by selecting the "From :" field in the gmail message interface. To be able to have your @debian.org account configured in that list you will need to go to the "Send mail as" section of your settings.

Note that you cannot use master.debian.org here as it does not allow authenticated connections and gmail requires it.

In your configuration, use:

  • your_username@debian.org as email address

  • smtp.gmail.com as the SMTP server (in the 2nd step of the process)
  • your gmail account as your username
  • you will have to generate an app password (at least if you enabled your 2 factors authentication) and use that as password in the password field.

Just search "send emails via smtp.gmail.com" if you need a more detailed guide on how to rend emails in Gmail with custom domain.

Benefits

Being a Debian contributor confers certain benefits when dealing with several external organisations. You may want to use those benefits.